mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 01:22:37 +00:00
Fixing all tasks include.
Removing drop table queries that cause other tests to fail.
This commit is contained in:
parent
26057c59c4
commit
714d8298c4
3 changed files with 3 additions and 6 deletions
|
@ -419,8 +419,6 @@ class SchemaShellTest extends CakeTestCase {
|
|||
$this->assertTrue(in_array($db->config['prefix'] . 'acos', $sources), 'acos should be present.');
|
||||
$this->assertFalse(in_array($db->config['prefix'] . 'aros', $sources), 'aros should not be found.');
|
||||
$this->assertFalse(in_array('aros_acos', $sources), 'aros_acos should not be found.');
|
||||
|
||||
$db->execute('DROP TABLE ' . $db->config['prefix'] . 'acos');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -486,6 +484,5 @@ class SchemaShellTest extends CakeTestCase {
|
|||
$db =& ConnectionManager::getDataSource('test');
|
||||
$sources = $db->listSources();
|
||||
$this->assertTrue(in_array($db->config['prefix'] . 'acos', $sources));
|
||||
|
||||
$db->execute('DROP TABLE ' . $db->config['prefix'] . 'acos'); }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ class AllTests extends PHPUnit_Framework_TestSuite {
|
|||
$console = CORE_TEST_CASES . DS . 'console' . DS;
|
||||
|
||||
$suite->addTestFile($console . 'all_shells.test.php');
|
||||
$suite->addTestFile($console . 'libs' . DS . 'all_tasks.test.php');
|
||||
$suite->addTestFile($console . 'all_tasks.test.php');
|
||||
|
||||
$suite->addTestFile($path . 'all_behaviors.test.php');
|
||||
$suite->addTestFile($path . 'all_cache_engines.test.php');
|
||||
|
|
|
@ -347,7 +347,7 @@ class AclBehaviorTest extends CakeTestCase {
|
|||
);
|
||||
$this->Aro->save($aroData);
|
||||
|
||||
$Person =& new AclPerson();
|
||||
$Person = new AclPerson();
|
||||
$data = array(
|
||||
'AclPerson' => array(
|
||||
'name' => 'Trent',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue