Improve API to return id instead of a boolean
This commit is contained in:
@@ -11,8 +11,8 @@ class ProjectPermissionTest extends Base
|
||||
public function testAllowEverybody()
|
||||
{
|
||||
$user = new User($this->container);
|
||||
$this->assertTrue($user->create(array('username' => 'unittest#1', 'password' => 'unittest')));
|
||||
$this->assertTrue($user->create(array('username' => 'unittest#2', 'password' => 'unittest')));
|
||||
$this->assertNotFalse($user->create(array('username' => 'unittest#1', 'password' => 'unittest')));
|
||||
$this->assertNotFalse($user->create(array('username' => 'unittest#2', 'password' => 'unittest')));
|
||||
|
||||
$p = new Project($this->container);
|
||||
$pp = new ProjectPermission($this->container);
|
||||
|
||||
Reference in New Issue
Block a user