From 77e10d25829f3523a168bf61424fac99a539f8be Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 22 Nov 2014 18:22:10 -0500 Subject: Improve API to return id instead of a boolean --- tests/units/ProjectPermissionTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/units/ProjectPermissionTest.php') diff --git a/tests/units/ProjectPermissionTest.php b/tests/units/ProjectPermissionTest.php index 394e0ac5..b169b63e 100644 --- a/tests/units/ProjectPermissionTest.php +++ b/tests/units/ProjectPermissionTest.php @@ -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); -- cgit v1.2.3