storage test
[m6w6/pq-gateway] / tests / lib / pq / Gateway / RowTest.php
index 4d539a054d9ba5ae116080134a1e867e042758c0..a8c5bc1d4c189ad43e2e3a5f347eda80ca0f60d3 100644 (file)
@@ -70,7 +70,7 @@ class RowTest extends \PHPUnit_Framework_TestCase {
                executeInConcurrentTransaction(
                        $this->table->getQueryExecutor(),
                        "UPDATE {$this->table->getName()} SET data='bar' WHERE id=\$1", 
-                       array($row->id->get()));
+                       array($row->id->get()))->commit();
                $this->setExpectedException("\\UnexpectedValueException", "Row has already been modified");
                $row->update();
                $txn->commit();
@@ -93,7 +93,7 @@ class RowTest extends \PHPUnit_Framework_TestCase {
                executeInConcurrentTransaction(
                        $this->table->getQueryExecutor(), 
                        "UPDATE {$this->table->getName()} SET counter = 10 WHERE id=\$1", 
-                       array($row->id->get()));
+                       array($row->id->get()))->commit();
                $this->setExpectedException("\\UnexpectedValueException", "No row updated");
                $row->update();
        }