|
@@ 46-56 (lines=11) @@
|
| 43 |
|
$this->executeConsole(new RemoveCacheCommand()); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
public function testExecuteSuccessfullyWithEmptyCacheAndOnePathAndOneFilter() |
| 47 |
|
{ |
| 48 |
|
$this->assertFileNotExists($this->cacheRoot.'/thumbnail_web_path/images/cats.jpeg'); |
| 49 |
|
|
| 50 |
|
$this->executeConsole( |
| 51 |
|
new RemoveCacheCommand(), |
| 52 |
|
array( |
| 53 |
|
'paths' => array('images/cats.jpeg'), |
| 54 |
|
'--filters' => array('thumbnail_web_path'), |
| 55 |
|
)); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function testExecuteSuccessfullyWithEmptyCacheAndMultiplePaths() |
| 59 |
|
{ |
|
@@ 58-66 (lines=9) @@
|
| 55 |
|
)); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function testExecuteSuccessfullyWithEmptyCacheAndMultiplePaths() |
| 59 |
|
{ |
| 60 |
|
$this->assertFileNotExists($this->cacheRoot.'/thumbnail_web_path/images/cats.jpeg'); |
| 61 |
|
|
| 62 |
|
$this->executeConsole( |
| 63 |
|
new RemoveCacheCommand(), |
| 64 |
|
array('paths' => array('images/cats.jpeg', 'images/cats2.jpeg')) |
| 65 |
|
); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
public function testExecuteSuccessfullyWithEmptyCacheAndMultipleFilters() |
| 69 |
|
{ |
|
@@ 68-76 (lines=9) @@
|
| 65 |
|
); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
public function testExecuteSuccessfullyWithEmptyCacheAndMultipleFilters() |
| 69 |
|
{ |
| 70 |
|
$this->assertFileNotExists($this->cacheRoot.'/thumbnail_web_path/images/cats.jpeg'); |
| 71 |
|
|
| 72 |
|
$this->executeConsole( |
| 73 |
|
new RemoveCacheCommand(), |
| 74 |
|
array('--filters' => array('thumbnail_web_path', 'thumbnail_default')) |
| 75 |
|
); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
public function testShouldRemoveAllCacheIfParametersDoesNotPassed() |
| 79 |
|
{ |