diff --git a/tests/Task/BuiltIn/Symfony/CachePoolClearTaskTest.php b/tests/Task/BuiltIn/Symfony/CachePoolClearTaskTest.php new file mode 100644 index 0000000..0aa8098 --- /dev/null +++ b/tests/Task/BuiltIn/Symfony/CachePoolClearTaskTest.php @@ -0,0 +1,38 @@ +runtime = new RuntimeMockup(); + $this->runtime->setConfiguration(['environments' => ['test' => []]]); + $this->runtime->setEnvironment('test'); + } + + public function testAsseticDumpTask() + { + $task = new CachePoolClearTask(); + $task->setOptions(['env' => 'test']); + $task->setRuntime($this->runtime); + $this->assertEquals('[Symfony] Cache Pool Clear', $task->getDescription()); + + try { + $task->execute(); + } catch (ErrorException $exception) { + $this->assertEquals('Parameter "pools" is not defined', $exception->getMessage()); + } + } +} \ No newline at end of file