mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing failing tests caused by path/object cache issues.
This commit is contained in:
parent
efbeab6199
commit
85d9b1af8d
3 changed files with 7 additions and 5 deletions
|
@ -32,6 +32,7 @@ class ConnectionManagerTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function tearDown() {
|
public function tearDown() {
|
||||||
|
parent::tearDown();
|
||||||
CakePlugin::unload();
|
CakePlugin::unload();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -89,7 +90,7 @@ class ConnectionManagerTest extends CakeTestCase {
|
||||||
public function testGetPluginDataSource() {
|
public function testGetPluginDataSource() {
|
||||||
App::build(array(
|
App::build(array(
|
||||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||||
));
|
), App::RESET);
|
||||||
CakePlugin::load('TestPlugin');
|
CakePlugin::load('TestPlugin');
|
||||||
$name = 'test_source';
|
$name = 'test_source';
|
||||||
$config = array('datasource' => 'TestPlugin.TestSource');
|
$config = array('datasource' => 'TestPlugin.TestSource');
|
||||||
|
@ -110,7 +111,7 @@ class ConnectionManagerTest extends CakeTestCase {
|
||||||
public function testGetPluginDataSourceAndPluginDriver() {
|
public function testGetPluginDataSourceAndPluginDriver() {
|
||||||
App::build(array(
|
App::build(array(
|
||||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||||
));
|
), App::RESET);
|
||||||
CakePlugin::load('TestPlugin');
|
CakePlugin::load('TestPlugin');
|
||||||
$name = 'test_plugin_source_and_driver';
|
$name = 'test_plugin_source_and_driver';
|
||||||
$config = array('datasource' => 'TestPlugin.Database/TestDriver');
|
$config = array('datasource' => 'TestPlugin.Database/TestDriver');
|
||||||
|
@ -274,7 +275,7 @@ class ConnectionManagerTest extends CakeTestCase {
|
||||||
'Model/Datasource' => array(
|
'Model/Datasource' => array(
|
||||||
CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS . 'Datasource' . DS
|
CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS . 'Datasource' . DS
|
||||||
)
|
)
|
||||||
));
|
), App::RESET);
|
||||||
CakePlugin::loadAll();
|
CakePlugin::loadAll();
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'datasource' => 'Test2Source'
|
'datasource' => 'Test2Source'
|
||||||
|
|
|
@ -124,7 +124,7 @@ class ControllerTestCaseTest extends CakeTestCase {
|
||||||
'Controller' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Controller' . DS),
|
'Controller' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Controller' . DS),
|
||||||
'Model' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS),
|
'Model' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS),
|
||||||
'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS)
|
'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS)
|
||||||
));
|
), App::RESET);
|
||||||
CakePlugin::loadAll();
|
CakePlugin::loadAll();
|
||||||
$this->Case = $this->getMockForAbstractClass('ControllerTestCase');
|
$this->Case = $this->getMockForAbstractClass('ControllerTestCase');
|
||||||
Router::reload();
|
Router::reload();
|
||||||
|
|
|
@ -27,9 +27,10 @@ class HtmlCoverageReportTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
|
parent::setUp();
|
||||||
App::build(array(
|
App::build(array(
|
||||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||||
));
|
), App::RESET);
|
||||||
CakePlugin::loadAll();
|
CakePlugin::loadAll();
|
||||||
$reporter = new CakeBaseReporter();
|
$reporter = new CakeBaseReporter();
|
||||||
$reporter->params = array('app' => false, 'plugin' => false, 'group' => false);
|
$reporter->params = array('app' => false, 'plugin' => false, 'group' => false);
|
||||||
|
|
Loading…
Reference in a new issue