mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 21:12:41 +00:00
Upgrade legacy uses of App::build() types
This commit is contained in:
parent
c4829dc3b8
commit
22582aee63
39 changed files with 81 additions and 81 deletions
|
@ -182,7 +182,7 @@ class SchemaShellTest extends CakeTestCase {
|
|||
*/
|
||||
public function testViewWithPlugins() {
|
||||
App::build(array(
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
));
|
||||
CakePlugin::load('TestPlugin');
|
||||
$this->Shell->args = array('TestPlugin.schema');
|
||||
|
@ -234,7 +234,7 @@ class SchemaShellTest extends CakeTestCase {
|
|||
*/
|
||||
public function testDumpFileWritingWithPlugins() {
|
||||
App::build(array(
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
));
|
||||
CakePlugin::load('TestPlugin');
|
||||
$this->Shell->args = array('TestPlugin.TestPluginApp');
|
||||
|
@ -335,7 +335,7 @@ class SchemaShellTest extends CakeTestCase {
|
|||
*/
|
||||
public function testGenerateWithPlugins() {
|
||||
App::build(array(
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
), App::RESET);
|
||||
CakePlugin::load('TestPlugin');
|
||||
|
||||
|
@ -450,7 +450,7 @@ class SchemaShellTest extends CakeTestCase {
|
|||
*/
|
||||
public function testPluginParam() {
|
||||
App::build(array(
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
));
|
||||
CakePlugin::load('TestPlugin');
|
||||
$this->Shell->params = array(
|
||||
|
@ -470,7 +470,7 @@ class SchemaShellTest extends CakeTestCase {
|
|||
*/
|
||||
public function testPluginDotSyntaxWithCreate() {
|
||||
App::build(array(
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
));
|
||||
CakePlugin::load('TestPlugin');
|
||||
$this->Shell->params = array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue