From a957195952e2c93177628ab07936d783da1388c3 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 20 Dec 2016 17:40:33 -0500 Subject: Add test case for ExternalTaskManager::getProvidersList() --- tests/units/Core/ExternalTask/ExternalTaskManagerTest.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/units') 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()); + } } -- cgit v1.2.3