mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-02 07:39:45 +00:00
Adding tests for previous commit.
This commit is contained in:
parent
467ae1f4fd
commit
65a12ed902
1 changed files with 12 additions and 1 deletions
|
@ -227,7 +227,7 @@ class ConfigureTest extends CakeTestCase {
|
||||||
|
|
||||||
$result = Configure::load('config');
|
$result = Configure::load('config');
|
||||||
$this->assertTrue($result === null);
|
$this->assertTrue($result === null);
|
||||||
|
|
||||||
$result = Configure::load('../../index');
|
$result = Configure::load('../../index');
|
||||||
$this->assertFalse($result);
|
$this->assertFalse($result);
|
||||||
}
|
}
|
||||||
|
@ -421,6 +421,17 @@ class AppImportTest extends UnitTestCase {
|
||||||
|
|
||||||
$result = App::objects('NonExistingType');
|
$result = App::objects('NonExistingType');
|
||||||
$this->assertFalse($result);
|
$this->assertFalse($result);
|
||||||
|
|
||||||
|
App::build(array(
|
||||||
|
'plugins' => array(
|
||||||
|
TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'libs' . DS
|
||||||
|
)
|
||||||
|
));
|
||||||
|
$result = App::objects('plugin', null, false);
|
||||||
|
$this->assertTrue(in_array('Cache', $result));
|
||||||
|
$this->assertTrue(in_array('Log', $result));
|
||||||
|
|
||||||
|
App::build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue