Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | public function it_has_users() |
||
48 | { |
||
49 | $this->truncateUsersTable(); |
||
50 | $this->seedUsers(); |
||
51 | |||
52 | $user = \DB::table('users')->where('id', '=', 2)->first(); |
||
53 | $this->assertEquals('[email protected]', $user->email); |
||
|
|||
54 | $this->assertTrue(\Hash::check('456', $user->password)); |
||
55 | |||
56 | $user = \DB::table('users')->where('id', '=', 1)->first(); |
||
57 | $this->assertEquals('[email protected]', $user->email); |
||
58 | $this->assertTrue(\Hash::check('456', $user->password)); |
||
59 | } |
||
61 |