the category will say app

because it's under app
This commit is contained in:
AD7six 2011-10-18 12:00:46 +02:00
parent 1dae2735af
commit cccb6e9867

View file

@ -269,13 +269,13 @@ class TestShellTest extends CakeTestCase {
$this->Shell->startup(); $this->Shell->startup();
$return = $this->Shell->mapFileToCategory(APP . 'Test/Case/NotATestFile.php'); $return = $this->Shell->mapFileToCategory(APP . 'Test/Case/NotATestFile.php');
$this->assertFalse($return); $this->assertSame('app', $return);
$return = $this->Shell->mapFileToCase(APP . 'Test/Case/NotATestFile.php', false, false); $return = $this->Shell->mapFileToCase(APP . 'Test/Case/NotATestFile.php', false, false);
$this->assertFalse($return); $this->assertFalse($return);
$return = $this->Shell->mapFileToCategory(APP . 'Test/Fixture/SomeTest.php'); $return = $this->Shell->mapFileToCategory(APP . 'Test/Fixture/SomeTest.php');
$this->assertFalse($return); $this->assertSame('app', $return);
$return = $this->Shell->mapFileToCase(APP . 'Test/Fixture/SomeTest.php', false, false); $return = $this->Shell->mapFileToCase(APP . 'Test/Fixture/SomeTest.php', false, false);
$this->assertFalse($return); $this->assertFalse($return);