Skip to content

Commit

Permalink
Fixing failing tests in ObjectTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 22, 2011
1 parent dbb3149 commit fd55066
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lib/Cake/tests/Case/Core/ObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,9 @@ function testMethodDispatching() {
*/
function testRequestAction() {
App::build(array(
'models' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'models' . DS),
'views' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'views' . DS),
'controllers' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'controllers' . DS)
'models' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'Model' . DS),
'views' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'View' . DS),
'controllers' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'Controller' . DS)
));
$result = $this->object->requestAction('');
$this->assertFalse($result);
Expand Down Expand Up @@ -763,9 +763,9 @@ function testRequestActionPlugins() {
*/
function testRequestActionArray() {
App::build(array(
'models' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'models' . DS),
'views' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'views' . DS),
'controllers' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'controllers' . DS)
'models' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'Model' . DS),
'views' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'View' . DS),
'controllers' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'Controller' . DS)
));

$result = $this->object->requestAction(
Expand Down Expand Up @@ -819,8 +819,7 @@ function testRequestActionArray() {
*/
function testRequestActionParamParseAndPass() {
$result = $this->object->requestAction('/request_action/params_pass');
$this->assertTrue(isset($result['url']['url']));
$this->assertEqual($result['url']['url'], 'request_action/params_pass');
$this->assertEqual($result->url, 'request_action/params_pass');
$this->assertEqual($result['controller'], 'request_action');
$this->assertEqual($result['action'], 'params_pass');
$this->assertEqual($result['form'], array());
Expand Down

0 comments on commit fd55066

Please sign in to comment.