You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
531 B
41 lines
531 B
6 years ago
|
<?php
|
||
|
/**
|
||
|
* Created by Error202
|
||
|
* Date: 13.08.2018
|
||
|
*/
|
||
|
|
||
|
namespace frontend\tests\unit;
|
||
|
|
||
|
use Codeception\Test\Unit;
|
||
|
use frontend\tests\UnitTester;
|
||
|
use frontend\tests\fixtures\UserFixture;
|
||
|
|
||
|
class UserTest extends Unit
|
||
|
{
|
||
|
/**
|
||
|
* @var UnitTester
|
||
|
*/
|
||
|
protected $tester;
|
||
|
|
||
|
public function _fixtures()
|
||
|
{
|
||
|
return [
|
||
|
'users' => UserFixture::class,
|
||
|
];
|
||
|
}
|
||
|
|
||
|
protected function _before() {
|
||
|
|
||
|
}
|
||
|
|
||
|
protected function _after() {
|
||
|
|
||
|
}
|
||
|
|
||
|
// test
|
||
|
public function testTest()
|
||
|
{
|
||
|
$user = $this->tester->grabFixture('users', 'user1');
|
||
|
}
|
||
|
|
||
|
}
|