mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +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
|
// Create records
|
||||||
if (isset($this->_fixtures) && isset($this->db)) {
|
if (isset($this->_fixtures) && isset($this->db)) {
|
||||||
foreach ($this->_fixtures as $fixture) {
|
foreach ($this->_fixtures as $fixture) {
|
||||||
$inserts = $fixture->insert();
|
$fixture->insert($this->db);
|
||||||
|
|
||||||
if (isset($inserts) && !empty($inserts)) {
|
|
||||||
foreach ($inserts as $query) {
|
|
||||||
if (isset($query) && $query !== false) {
|
|
||||||
$this->db->execute($query);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue