mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 15:39:53 +00:00
Removing bad integration test that wasn't required anymore.
This commit is contained in:
parent
bb3a1d546b
commit
572412ec6b
1 changed files with 0 additions and 24 deletions
|
@ -1077,30 +1077,6 @@ class ControllerTest extends CakeTestCase {
|
||||||
$this->assertIdentical($expected, $result);
|
$this->assertIdentical($expected, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* testRequestHandlerPrefers method
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function testRequestHandlerPrefers(){
|
|
||||||
Configure::write('debug', 2);
|
|
||||||
|
|
||||||
$request = new CakeRequest('controller_posts/index');
|
|
||||||
|
|
||||||
$Controller = new Controller($request, $this->getMock('CakeResponse'));
|
|
||||||
|
|
||||||
$Controller->components = array("RequestHandler");
|
|
||||||
$Controller->modelClass='ControllerPost';
|
|
||||||
$Controller->params['url'] = array('ext' => 'rss');
|
|
||||||
$Controller->constructClasses();
|
|
||||||
$Controller->Components->trigger('initialize', array(&$Controller));
|
|
||||||
$Controller->beforeFilter();
|
|
||||||
$Controller->Components->trigger('startup', array(&$Controller));
|
|
||||||
|
|
||||||
$this->assertEqual($Controller->RequestHandler->prefers(), 'rss');
|
|
||||||
unset($Controller);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* testControllerHttpCodes method
|
* testControllerHttpCodes method
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue