summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-20 17:40:33 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-20 17:40:33 -0500
commita957195952e2c93177628ab07936d783da1388c3 (patch)
tree8dbd836fa5727ec2cc4cc199eb925cd58a7223fd /tests
parenta4f258b26c9d7a04ec8f3775f1028e647f179f7d (diff)
Add test case for ExternalTaskManager::getProvidersList()
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Core/ExternalTask/ExternalTaskManagerTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/units/Core/ExternalTask/ExternalTaskManagerTest.php b/tests/units/Core/ExternalTask/ExternalTaskManagerTest.php
index e6f4e069..8eec64de 100644
--- a/tests/units/Core/ExternalTask/ExternalTaskManagerTest.php
+++ b/tests/units/Core/ExternalTask/ExternalTaskManagerTest.php
@@ -41,4 +41,10 @@ class ExternalTaskManagerTest extends Base
$expected = array('MyProvider1' => 'MyProvider1', 'MyProvider2' => 'MyProvider2');
$this->assertEquals($expected, $providers);
}
+
+ public function testGetProviderListWithNoProviders()
+ {
+ $manager = new ExternalTaskManager();
+ $this->assertSame(array(), $manager->getProvidersList());
+ }
}