Merge pull request #217 from majna/2.0-test-suite

Fixing failing test.
This commit is contained in:
Renan Gonçalves aka renan.saddam 2011-09-27 14:54:56 -07:00
commit 2bce6149e9
2 changed files with 2 additions and 1 deletions

View file

@ -2329,6 +2329,7 @@ class RouterTest extends CakeTestCase {
'named' => array(), 'named' => array(),
'ext' => 'json', 'ext' => 'json',
)); ));
$request->query = array();
$result = Router::reverse($request); $result = Router::reverse($request);
$expected = '/posts/view/1.json'; $expected = '/posts/view/1.json';
$this->assertEquals($expected, $result); $this->assertEquals($expected, $result);

View file

@ -264,7 +264,7 @@ class DebuggerTest extends CakeTestCase {
ob_start(); ob_start();
$foo .= ''; $foo .= '';
$result = ob_get_clean(); $result = ob_get_clean();
$this->assertEquals('Notice: I eated an error CORE/Cake/Test/Case/Utility/DebuggerTest.php', $result); $this->assertEquals('Notice: I eated an error ' . 'CORE' . DS . ltrim(__FILE__, CAKE_CORE_INCLUDE_PATH), $result);
} }
/** /**