mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
removing unneeded App::build() calls in the tests, tearDown() already does this, also always build with App::RESET
This commit is contained in:
parent
14b065e229
commit
76b3f5a21c
1 changed files with 3 additions and 10 deletions
|
@ -679,7 +679,7 @@ class ObjectTest extends CakeTestCase {
|
|||
'models' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS),
|
||||
'views' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS),
|
||||
'controllers' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Controller' . DS)
|
||||
));
|
||||
), true);
|
||||
$result = $this->object->requestAction('');
|
||||
$this->assertFalse($result);
|
||||
|
||||
|
@ -705,8 +705,6 @@ class ObjectTest extends CakeTestCase {
|
|||
$result = $this->object->requestAction('/request_action/normal_request_action');
|
||||
$expected = 'Hello World';
|
||||
$this->assertEqual($expected, $result);
|
||||
|
||||
App::build();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -717,7 +715,7 @@ class ObjectTest extends CakeTestCase {
|
|||
function testRequestActionPlugins() {
|
||||
App::build(array(
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS),
|
||||
));
|
||||
), true);
|
||||
CakePlugin::loadAll();
|
||||
Router::reload();
|
||||
|
||||
|
@ -744,9 +742,6 @@ class ObjectTest extends CakeTestCase {
|
|||
);
|
||||
$expected = 25;
|
||||
$this->assertEqual($expected, $result);
|
||||
|
||||
App::build();
|
||||
CakePlugin::unload();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -760,7 +755,7 @@ class ObjectTest extends CakeTestCase {
|
|||
'views' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS),
|
||||
'controllers' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Controller' . DS),
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin'. DS)
|
||||
));
|
||||
), true);
|
||||
CakePlugin::loadAll();
|
||||
|
||||
$result = $this->object->requestAction(
|
||||
|
@ -802,8 +797,6 @@ class ObjectTest extends CakeTestCase {
|
|||
array('pass' => array(5), 'named' => array('param' => 'value'))
|
||||
);
|
||||
$this->assertTrue($result);
|
||||
|
||||
App::build();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue