added Table::with()
[m6w6/pq-gateway] / tests / lib / pq / Gateway / RowTest.php
index 00dbbbb6c9c2eb806a877e3177adb1036d05ed54..6a738d3b4e54dae0f58be6d3f8141c57809e101b 100644 (file)
@@ -90,7 +90,6 @@ class RowTest extends \PHPUnit_Framework_TestCase {
        function testOptimisticLockFail() {
                $this->table->setLock(new Table\OptimisticLock("counter"));
                $row = $this->table->find(null, null, 1)->current();
-               $cnt = $row->counter->get();
                $row->data = "foo";
                executeInConcurrentTransaction(
                        $this->table->getQueryExecutor(), 
@@ -103,7 +102,7 @@ class RowTest extends \PHPUnit_Framework_TestCase {
        function testRef() {
                foreach ($this->table->find() as $row) {
                        foreach ($row->reftest() as $ref) {
-                               $this->assertEquals($row->id->get(), $ref->test->id->get());
+                               $this->assertEquals($row->id->get(), $ref->test->current()->id->get());
                        }
                }
        }