| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function testUsernameWhichDoesNotExist() |
||
| 25 | { |
||
| 26 | // generate a random name which does not exist in the database |
||
| 27 | do { |
||
| 28 | $loginName = rand(); |
||
| 29 | } while (UserManager::get_user_id_from_username($loginName)); |
||
| 30 | |||
| 31 | // expect the web service to return false |
||
| 32 | $this->assertFalse($this->boolean(['loginname' => $loginName])); |
||
| 33 | } |
||
| 63 |