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:
nate 2008-01-12 20:50:34 +00:00
parent 5649f17f7b
commit 2b2bdcde5c

View file

@ -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);
}
}