Browse files

Updating test for `route` console command to reflect CamelCased contr…

…oller names.
  • Loading branch information...
1 parent 9658832 commit 3e58f83e56af4d5081007bece54ffe62bf17533b @nateabele nateabele committed Apr 12, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 tests/cases/console/command/RouteTest.php
View
16 tests/cases/console/command/RouteTest.php
@@ -128,8 +128,8 @@ public function testAllWithoutEnvironment() {
$command->all();
$expected = 'TemplateParams--------------
- /{"controller":"pages","action":"view"}
- /pages/{:args}{"controller":"pages","action":"view"}
+ /{"controller":"Pages","action":"view"}
+ /pages/{:args}{"controller":"Pages","action":"view"}
/test/{:args}{"controller":"lithium\\test\\\\Controller","action":"index"}
/test{"controller":"lithium\\test\\\\Controller","action":"index"}';
$this->assertEqual($this->_strip($expected),$this->_strip($command->response->output));
@@ -155,8 +155,8 @@ public function testAllWithEnvironment() {
$command->all();
$expected = 'TemplateParams--------------
- /{"controller":"pages","action":"view"}
- /pages/{:args}{"controller":"pages","action":"view"}';
+ /{"controller":"Pages","action":"view"}
+ /pages/{:args}{"controller":"Pages","action":"view"}';
$this->assertEqual($this->_strip($expected),$this->_strip($command->response->output));
}
@@ -173,8 +173,8 @@ public function testRun() {
$command->run();
$expected = 'TemplateParams--------------
- /{"controller":"pages","action":"view"}
- /pages/{:args}{"controller":"pages","action":"view"}
+ /{"controller":"Pages","action":"view"}
+ /pages/{:args}{"controller":"Pages","action":"view"}
/test/{:args}{"controller":"lithium\\test\\\\Controller","action":"index"}
/test{"controller":"lithium\\test\\\\Controller","action":"index"}';
$this->assertEqual($this->_strip($expected),$this->_strip($command->response->output));
@@ -226,7 +226,7 @@ public function testShowWithValidRoute() {
));
$command->show();
- $expected = "{\"controller\":\"pages\",\"action\":\"view\"}\n";
+ $expected = "{\"controller\":\"Pages\",\"action\":\"view\"}\n";
$this->assertEqual($expected, $command->response->output);
}
@@ -267,7 +267,7 @@ public function testShowWithHttpMethod() {
$command->show();
- $expected = "{\"controller\":\"pages\",\"action\":\"view\"}\n";
+ $expected = "{\"controller\":\"Pages\",\"action\":\"view\"}\n";
$this->assertEqual($expected, $command->response->output);
}

0 comments on commit 3e58f83

Please sign in to comment.