X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Flib%2Fpq%2FGateway%2FTableTest.php;h=03f71f783e36c000c767beffe484804c639b6ff1;hb=ccdcd2977c8bdc7c74b89b2fb7c2ea46479692b8;hp=3f7b35c500ff8d004d726f735bf90026461ae999;hpb=409fca54acfee2db6c62540a8f67b1adfa695a38;p=m6w6%2Fpq-gateway diff --git a/tests/lib/pq/Gateway/TableTest.php b/tests/lib/pq/Gateway/TableTest.php index 3f7b35c..03f71f7 100644 --- a/tests/lib/pq/Gateway/TableTest.php +++ b/tests/lib/pq/Gateway/TableTest.php @@ -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,