summaryrefslogtreecommitdiffstats
path: root/tests/mocks/database/schema/skeleton.php
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-04-04 20:51:57 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-04-04 20:51:57 +0200
commit024098d05d00383bf82165e1f8bbadb53cbcaa9b (patch)
treebca9ab6d0b1f6e6e188629541f168c075cadc808 /tests/mocks/database/schema/skeleton.php
parent55f804239cb0141fdac748607d8cdfa143efac92 (diff)
Use more user-friendly method for dummy create data
Diffstat (limited to 'tests/mocks/database/schema/skeleton.php')
-rw-r--r--tests/mocks/database/schema/skeleton.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/mocks/database/schema/skeleton.php b/tests/mocks/database/schema/skeleton.php
index bf9e75b45..53df73bdd 100644
--- a/tests/mocks/database/schema/skeleton.php
+++ b/tests/mocks/database/schema/skeleton.php
@@ -48,17 +48,10 @@ class Mock_Database_Schema_Skeleton {
foreach ($data as $table => $dummy_data)
{
$db->truncate($table);
-
- if (strpos(DB_DRIVER, 'sqlite') === FALSE)
- {
- $db->insert_batch($table, $dummy_data);
- }
- else
+
+ foreach ($dummy_data as $single_dummy_data)
{
- foreach ($dummy_data as $single_dummy_data)
- {
- $db->insert($table, $single_dummy_data);
- }
+ $db->insert($table, $single_dummy_data);
}
}
}