Browse Source

Add more coverage to cache commands.

Mark Story 6 years ago
parent
commit
1410048326
1 changed files with 15 additions and 0 deletions
  1. 15 0
      tests/TestCase/Command/CacheCommandsTest.php

+ 15 - 0
tests/TestCase/Command/CacheCommandsTest.php

@@ -76,6 +76,21 @@ class CacheCommandsTest extends ConsoleIntegrationTestCase
     }
 
     /**
+     * Test list output
+     *
+     * @return void
+     */
+    public function testList()
+    {
+        $this->exec('cache list');
+
+        $this->assertExitCode(Shell::CODE_SUCCESS);
+        $this->assertOutputContains('- test');
+        $this->assertOutputContains('- _cake_core_');
+        $this->assertOutputContains('- _cake_model_');
+    }
+
+    /**
      * Test help output
      *
      * @return void