更新项目部分结构,新增加DB
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace app\tests\unit\models;
|
||||
|
||||
use common\fixtures\UserFixture;
|
||||
use app\models\SignupForm;
|
||||
use common\fixtures\UserFixture;
|
||||
|
||||
class SignupFormTest extends \Codeception\Test\Unit
|
||||
{
|
||||
@@ -34,11 +34,11 @@ class SignupFormTest extends \Codeception\Test\Unit
|
||||
$user = $model->signup();
|
||||
verify($user)->notEmpty();
|
||||
|
||||
/** @var \common\models\User $user */
|
||||
$user = $this->tester->grabRecord('common\models\User', [
|
||||
/** @var \common\models\oldDb\User $user */
|
||||
$user = $this->tester->grabRecord('common\models\oldDb\User', [
|
||||
'username' => 'some_username',
|
||||
'email' => 'some_email@example.com',
|
||||
'status' => \common\models\User::STATUS_INACTIVE
|
||||
'status' => \common\models\oldDb\User::STATUS_INACTIVE
|
||||
]);
|
||||
|
||||
$this->tester->seeEmailIsSent();
|
||||
|
||||
Reference in New Issue
Block a user