summaryrefslogtreecommitdiff
path: root/tests/it_dbi.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/it_dbi.t')
-rwxr-xr-xtests/it_dbi.t14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/it_dbi.t b/tests/it_dbi.t
index e988fa8..946f7a8 100755
--- a/tests/it_dbi.t
+++ b/tests/it_dbi.t
@@ -237,37 +237,37 @@ foreach ($record as $dummy_rec)
is($count, 2, "Iterator reused");
$GLOBALS['debug_sqllog'] = true;
-@$record->store(array('ID' => 5, 'x' => 6));
+@$record->smart_replace(array('ID' => 5, 'x' => 6));
like(
$record->_sqllog[1]['query'],
"REPLACE",
- "store => REPLACE for new entries"
+ "smart_replace => REPLACE for new entries"
);
$record->clear();
@$record->read(5);
is(
$record->x,
6,
- "saving with store"
+ "saving with smart_replace"
);
$record->_sqllog = array();
-@$record->store(array('ID' => 5, 'x' => 7));
+@$record->smart_replace(array('ID' => 5, 'x' => 7));
like(
$record->_sqllog[1]['query'],
"UPDATE",
- "store => UPDATE for existing entries"
+ "smart_replace => UPDATE for existing entries"
);
$record->clear();
@$record->read(5);
is(
$record->x,
7,
- "updating with store"
+ "updating with smart_replace"
);
$record->_sqllog = array();
-@$record->store(array('ID' => 5, 'x' => 7));
+@$record->smart_replace(array('ID' => 5, 'x' => 7));
is(
$record->_sqllog[1]['query'],
null, # Only SELECT, no UPDATE