refactor relations
[m6w6/pq-gateway] / tests / lib / pq / Gateway / TableTest.php
index 3f7b35c500ff8d004d726f735bf90026461ae999..03f71f783e36c000c767beffe484804c639b6ff1 100644 (file)
@@ -85,8 +85,7 @@ class TableTest extends \PHPUnit_Framework_TestCase {
        }
        
        public function testWith() {
-               $relation = $this->table->getRelations("test")->reftest;
-               $rowset = $this->table->with([$relation], array("another_test_id=" => 2));
+               $rowset = $this->table->with(["reftest"], array("another_test_id=" => 2));
                $this->assertCount(1, $rowset);
                $this->assertEquals(array(
                        "id" => 2,