diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-05 20:31:27 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-05 20:31:27 -0500 |
commit | e9fedf3e5cd63aea4da7a71f6647ee427c62fa49 (patch) | |
tree | abc2de5aebace4a2d7c94805552264dab6b10bc7 /tests/units/Integration/BitbucketWebhookTest.php | |
parent | 346b8312e5ac877ce3192c2db3a26b500018bbb5 (diff) |
Rewrite of the authentication and authorization system
Diffstat (limited to 'tests/units/Integration/BitbucketWebhookTest.php')
-rw-r--r-- | tests/units/Integration/BitbucketWebhookTest.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/units/Integration/BitbucketWebhookTest.php b/tests/units/Integration/BitbucketWebhookTest.php index 1a3b005b..40dbde2e 100644 --- a/tests/units/Integration/BitbucketWebhookTest.php +++ b/tests/units/Integration/BitbucketWebhookTest.php @@ -6,8 +6,9 @@ use Kanboard\Integration\BitbucketWebhook; use Kanboard\Model\TaskCreation; use Kanboard\Model\TaskFinder; use Kanboard\Model\Project; -use Kanboard\Model\ProjectPermission; +use Kanboard\Model\ProjectUserRole; use Kanboard\Model\User; +use Kanboard\Core\Security\Role; class BitbucketWebhookTest extends Base { @@ -108,8 +109,8 @@ class BitbucketWebhookTest extends Base $u = new User($this->container); $this->assertEquals(2, $u->create(array('username' => 'minicoders'))); - $pp = new ProjectPermission($this->container); - $this->assertTrue($pp->addMember(1, 2)); + $pp = new ProjectUserRole($this->container); + $this->assertTrue($pp->addUser(1, 2, Role::PROJECT_MEMBER)); $g = new BitbucketWebhook($this->container); $g->setProjectId(1); @@ -232,8 +233,8 @@ class BitbucketWebhookTest extends Base $u = new User($this->container); $this->assertEquals(2, $u->create(array('username' => 'minicoders'))); - $pp = new ProjectPermission($this->container); - $this->assertTrue($pp->addMember(1, 2)); + $pp = new ProjectUserRole($this->container); + $this->assertTrue($pp->addUser(1, 2, Role::PROJECT_MEMBER)); $g = new BitbucketWebhook($this->container); $g->setProjectId(1); |