Browse Source

Use correct $contents variable in the test

Walther Lalk 10 years ago
parent
commit
26ae03005e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tests/TestCase/Console/ShellTest.php

+ 1 - 2
tests/TestCase/Console/ShellTest.php

@@ -546,11 +546,10 @@ class ShellTest extends TestCase
             ->method('askChoice')
             ->will($this->returnValue('a'));
 
-        foreach ($files as $file => $content) {
+        foreach ($files as $file => $contents) {
             touch($file);
             $this->assertTrue(file_exists($file));
 
-            $contents = "My content";
             $result = $this->Shell->createFile($file, $contents);
             $this->assertTrue(file_exists($file));
             $this->assertTextEquals($contents, file_get_contents($file));