From b12997d7fcc6777361dab13ba32a496a51d01429 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 5 Nov 2016 22:05:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2=20Account=20=D0=BC?= =?UTF-8?q?=D0=BE=D0=B4=D0=B5=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/codeception/common/unit/models/AccountTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/codeception/common/unit/models/AccountTest.php b/tests/codeception/common/unit/models/AccountTest.php index 2b791e3..afb5de9 100644 --- a/tests/codeception/common/unit/models/AccountTest.php +++ b/tests/codeception/common/unit/models/AccountTest.php @@ -4,6 +4,7 @@ namespace tests\codeception\common\unit\models; use Codeception\Specify; use common\components\UserPass; use common\models\Account; +use tests\codeception\common\fixtures\MojangUsernameFixture; use tests\codeception\common\unit\TestCase; use Yii; use const common\LATEST_RULES_VERSION; @@ -56,6 +57,10 @@ class AccountTest extends TestCase { } public function testHasMojangUsernameCollision() { + $this->tester->haveFixtures([ + 'mojangUsernames' => MojangUsernameFixture::class, + ]); + $this->specify('Expect true if collision with current username', function() { $model = new Account(); $model->username = 'ErickSkrauch';