summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/php.ini4
-rw-r--r--tests/units/Core/ExternalTask/ExternalTaskManagerTest.php6
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/php.ini b/tests/php.ini
index 9f683297..a4f0be2c 100644
--- a/tests/php.ini
+++ b/tests/php.ini
@@ -1,5 +1,3 @@
-short_open_tag = On
date.timezone = UTC
opcache.enable = Off
-opcache.enable_cli = Off
-extension=ldap.so \ No newline at end of file
+opcache.enable_cli = Off \ No newline at end of file
diff --git a/tests/units/Core/ExternalTask/ExternalTaskManagerTest.php b/tests/units/Core/ExternalTask/ExternalTaskManagerTest.php
index 8eec64de..76f12ad4 100644
--- a/tests/units/Core/ExternalTask/ExternalTaskManagerTest.php
+++ b/tests/units/Core/ExternalTask/ExternalTaskManagerTest.php
@@ -16,7 +16,7 @@ class ExternalTaskManagerTest extends Base
public function testRegister()
{
- $provider = $this->getMock('Kanboard\Core\ExternalTask\ExternalTaskProviderInterface');
+ $provider = $this->getMockBuilder('Kanboard\Core\ExternalTask\ExternalTaskProviderInterface')->getMock();
$provider->expects($this->any())->method('getName')->willReturn('MyProvider');
$manager = new ExternalTaskManager();
@@ -27,10 +27,10 @@ class ExternalTaskManagerTest extends Base
public function testGetList()
{
- $provider1 = $this->getMock('Kanboard\Core\ExternalTask\ExternalTaskProviderInterface');
+ $provider1 = $this->getMockBuilder('Kanboard\Core\ExternalTask\ExternalTaskProviderInterface')->getMock();
$provider1->expects($this->any())->method('getName')->willReturn('MyProvider1');
- $provider2 = $this->getMock('Kanboard\Core\ExternalTask\ExternalTaskProviderInterface');
+ $provider2 = $this->getMockBuilder('Kanboard\Core\ExternalTask\ExternalTaskProviderInterface')->getMock();
$provider2->expects($this->any())->method('getName')->willReturn('MyProvider2');
$manager = new ExternalTaskManager();