diff options
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); |