projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
refactor relations
[m6w6/pq-gateway]
/
tests
/
lib
/
pq
/
Gateway
/
TableTest.php
diff --git
a/tests/lib/pq/Gateway/TableTest.php
b/tests/lib/pq/Gateway/TableTest.php
index 3f7b35c500ff8d004d726f735bf90026461ae999..03f71f783e36c000c767beffe484804c639b6ff1 100644
(file)
--- 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() {
}
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,
$this->assertCount(1, $rowset);
$this->assertEquals(array(
"id" => 2,