From 2bd1adf0e007d8024d3a8f0c038d94d93e9ed819 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 1 Nov 2012 13:57:28 +0000 Subject: better function naming --- tests/it_dbi.t | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/it_dbi.t') 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 -- cgit v1.2.3