mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fixing ACL tests for schema refactor
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6370 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5649f17f7b
commit
2b2bdcde5c
1 changed files with 1 additions and 9 deletions
|
@ -103,15 +103,7 @@ class AclComponentTest extends CakeTestCase {
|
|||
// Create records
|
||||
if (isset($this->_fixtures) && isset($this->db)) {
|
||||
foreach ($this->_fixtures as $fixture) {
|
||||
$inserts = $fixture->insert();
|
||||
|
||||
if (isset($inserts) && !empty($inserts)) {
|
||||
foreach ($inserts as $query) {
|
||||
if (isset($query) && $query !== false) {
|
||||
$this->db->execute($query);
|
||||
}
|
||||
}
|
||||
}
|
||||
$fixture->insert($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue