summaryrefslogtreecommitdiff
path: root/tests/it_dbi.t
diff options
context:
space:
mode:
authorUrban Müller2012-11-01 13:57:28 +0000
committerUrban Müller2012-11-01 13:57:28 +0000
commit2bd1adf0e007d8024d3a8f0c038d94d93e9ed819 (patch)
treedcb389db07ec952aa83a53b57f6d26659bcbee27 /tests/it_dbi.t
parent1dccb8ce3b85438401de8a43a18bfb3c7a0a3576 (diff)
downloaditools-2bd1adf0e007d8024d3a8f0c038d94d93e9ed819.tar.gz
itools-2bd1adf0e007d8024d3a8f0c038d94d93e9ed819.tar.bz2
itools-2bd1adf0e007d8024d3a8f0c038d94d93e9ed819.zip
better function naming
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