diff options
author | Urban Müller | 2012-11-01 13:57:28 +0000 |
---|---|---|
committer | Urban Müller | 2012-11-01 13:57:28 +0000 |
commit | 2bd1adf0e007d8024d3a8f0c038d94d93e9ed819 (patch) | |
tree | dcb389db07ec952aa83a53b57f6d26659bcbee27 /tests | |
parent | 1dccb8ce3b85438401de8a43a18bfb3c7a0a3576 (diff) | |
download | itools-2bd1adf0e007d8024d3a8f0c038d94d93e9ed819.tar.gz itools-2bd1adf0e007d8024d3a8f0c038d94d93e9ed819.tar.bz2 itools-2bd1adf0e007d8024d3a8f0c038d94d93e9ed819.zip |
better function naming
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/it_dbi.t | 14 |
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 |