1 | <?php |
||
17 | class SecurityUserTest extends WebTestCase |
||
18 | { |
||
19 | /** |
||
20 | * @param string[] $methods methods to mock |
||
21 | * |
||
22 | * @return \PHPUnit_Framework_MockObject_MockObject|\Graviton\SecurityBundle\Entities\SecurityUser |
||
23 | */ |
||
24 | protected function getUserMock(array $methods = array()) |
||
31 | |||
32 | /** |
||
33 | * roles should always return an array |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function testGetRoles() |
||
43 | |||
44 | /** |
||
45 | * get password should return empty |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | public function testGetPassword() |
||
55 | |||
56 | /** |
||
57 | * get salt should return empty |
||
58 | * |
||
59 | * @return void |
||
60 | */ |
||
61 | public function testGetSalt() |
||
67 | |||
68 | /** |
||
69 | * test credential removal |
||
70 | * |
||
71 | * @return void |
||
72 | */ |
||
73 | public function testEraseCredentials() |
||
79 | } |
||
80 |