d1f8bd40
Alexey Boroda
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
use thread\modules\user\models\User;
class ExampleTest extends \PHPUnit_Framework_TestCase
{
protected $tester;
protected $user_id;
protected function setUp()
{
$this->user_id = 1;
}
protected function tearDown()
{
}
// tests
function testUserExist()
{
// $user = User::find($this->user_id);
// $this->assertFalse($user);
// $this->tester->dontSeeRecord('users', [
// 'id' => $this->user_id,
// ]);
// echo 'complited';
}
}
|