mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing Scaffold tests
This commit is contained in:
parent
1b14887e3a
commit
12e7347272
1 changed files with 4 additions and 2 deletions
|
@ -282,6 +282,7 @@ class ScaffoldViewTest extends CakeTestCase {
|
|||
'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS),
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
));
|
||||
CakePlugin::load('TestPlugin');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -292,6 +293,7 @@ class ScaffoldViewTest extends CakeTestCase {
|
|||
function tearDown() {
|
||||
parent::tearDown();
|
||||
unset($this->Controller, $this->request);
|
||||
CakePlugin::unload();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -369,12 +371,12 @@ class ScaffoldViewTest extends CakeTestCase {
|
|||
$ScaffoldView = new TestScaffoldView($Controller);
|
||||
$result = $ScaffoldView->testGetFilename('admin_add');
|
||||
$expected = CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin'
|
||||
. DS .'test_plugin' . DS . 'View' . DS . 'tests' . DS . 'scaffold.form.ctp';
|
||||
. DS .'TestPlugin' . DS . 'View' . DS . 'Tests' . DS . 'scaffold.form.ctp';
|
||||
$this->assertEqual($expected, $result);
|
||||
|
||||
$result = $ScaffoldView->testGetFilename('add');
|
||||
$expected = CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin'
|
||||
. DS .'test_plugin' . DS . 'View' . DS . 'tests' . DS . 'scaffold.form.ctp';
|
||||
. DS .'TestPlugin' . DS . 'View' . DS . 'Tests' . DS . 'scaffold.form.ctp';
|
||||
$this->assertEqual($expected, $result);
|
||||
|
||||
Configure::write('Routing.prefixes', $_admin);
|
||||
|
|
Loading…
Reference in a new issue