summaryrefslogtreecommitdiff
path: root/tests/units/Integration/SlackWebhookTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-13 22:19:17 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-13 22:19:17 -0400
commit9c9ed02cd7ebc5dbbc99bcaed6f80988ce8a9677 (patch)
treec58789631d8f729dca8dbbf4108670e567dc25b4 /tests/units/Integration/SlackWebhookTest.php
parent7bfa38d93c7342fc5dc04722e7bc282f165b8cd4 (diff)
Change namespace to add Kanboard as prefix
Diffstat (limited to 'tests/units/Integration/SlackWebhookTest.php')
-rw-r--r--tests/units/Integration/SlackWebhookTest.php40
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/units/Integration/SlackWebhookTest.php b/tests/units/Integration/SlackWebhookTest.php
index 3b9a3c1b..cf8c8645 100644
--- a/tests/units/Integration/SlackWebhookTest.php
+++ b/tests/units/Integration/SlackWebhookTest.php
@@ -2,9 +2,9 @@
require_once __DIR__.'/../Base.php';
-use Integration\SlackWebhook;
-use Model\Project;
-use Model\Task;
+use Kanboard\Integration\SlackWebhook;
+use Kanboard\Model\Project;
+use Kanboard\Model\Task;
class SlackWebhookTest extends Base
{
@@ -13,7 +13,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -34,7 +34,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -42,7 +42,7 @@ class SlackWebhookTest extends Base
->getMock();
$this->container['projectIntegration'] = $this
- ->getMockBuilder('\Model\ProjectIntegration')
+ ->getMockBuilder('\Kanboard\Model\ProjectIntegration')
->setConstructorArgs(array($this->container))
->setMethods(array(
'hasValue',
@@ -73,7 +73,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -81,7 +81,7 @@ class SlackWebhookTest extends Base
->getMock();
$this->container['projectIntegration'] = $this
- ->getMockBuilder('\Model\ProjectIntegration')
+ ->getMockBuilder('\Kanboard\Model\ProjectIntegration')
->setConstructorArgs(array($this->container))
->setMethods(array(
'hasValue',
@@ -112,7 +112,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -133,7 +133,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -141,7 +141,7 @@ class SlackWebhookTest extends Base
->getMock();
$this->container['projectIntegration'] = $this
- ->getMockBuilder('\Model\ProjectIntegration')
+ ->getMockBuilder('\Kanboard\Model\ProjectIntegration')
->setConstructorArgs(array($this->container))
->setMethods(array(
'getParameters',
@@ -168,7 +168,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -195,7 +195,7 @@ class SlackWebhookTest extends Base
$slack = new SlackWebhook($this->container);
$this->container['config'] = $this
- ->getMockBuilder('\Model\Config')
+ ->getMockBuilder('\Kanboard\Model\Config')
->setConstructorArgs(array($this->container))
->setMethods(array(
'get',
@@ -203,7 +203,7 @@ class SlackWebhookTest extends Base
->getMock();
$this->container['projectIntegration'] = $this
- ->getMockBuilder('\Model\ProjectIntegration')
+ ->getMockBuilder('\Kanboard\Model\ProjectIntegration')
->setConstructorArgs(array($this->container))
->setMethods(array(
'getParameters',
@@ -228,7 +228,7 @@ class SlackWebhookTest extends Base
public function testSendPayloadWithChannel()
{
$this->container['httpClient'] = $this
- ->getMockBuilder('\Core\HttpClient')
+ ->getMockBuilder('\Kanboard\Core\HttpClient')
->setConstructorArgs(array($this->container))
->setMethods(array(
'postJson',
@@ -236,7 +236,7 @@ class SlackWebhookTest extends Base
->getMock();
$slack = $this
- ->getMockBuilder('\Integration\SlackWebhook')
+ ->getMockBuilder('\Kanboard\Integration\SlackWebhook')
->setConstructorArgs(array($this->container))
->setMethods(array(
'getChannel',
@@ -274,7 +274,7 @@ class SlackWebhookTest extends Base
public function testSendPayloadWithoutChannel()
{
$this->container['httpClient'] = $this
- ->getMockBuilder('\Core\HttpClient')
+ ->getMockBuilder('\Kanboard\Core\HttpClient')
->setConstructorArgs(array($this->container))
->setMethods(array(
'postJson',
@@ -282,7 +282,7 @@ class SlackWebhookTest extends Base
->getMock();
$slack = $this
- ->getMockBuilder('\Integration\SlackWebhook')
+ ->getMockBuilder('\Kanboard\Integration\SlackWebhook')
->setConstructorArgs(array($this->container))
->setMethods(array(
'getChannel',
@@ -328,7 +328,7 @@ class SlackWebhookTest extends Base
);
$slack = $this
- ->getMockBuilder('\Integration\SlackWebhook')
+ ->getMockBuilder('\Kanboard\Integration\SlackWebhook')
->setConstructorArgs(array($this->container))
->setMethods(array(
'sendPayload',
@@ -357,7 +357,7 @@ class SlackWebhookTest extends Base
$this->assertTrue($this->container['config']->save(array('integration_slack_webhook' => 1)));
$slack = $this
- ->getMockBuilder('\Integration\SlackWebhook')
+ ->getMockBuilder('\Kanboard\Integration\SlackWebhook')
->setConstructorArgs(array($this->container))
->setMethods(array(
'sendMessage',