atk4\data\tests\JoinArrayTest::testDirection2 PHP Method

testDirection2() public method

public testDirection2 ( )
    public function testDirection2()
    {
        $a = ['user' => [], 'contact' => []];
        $db = new Persistence_Array($a);
        $m = new Model($db, 'user');
        $j = $m->join('contact4.foo_id', 'test_id');
        $this->assertEquals(true, $this->getProtected($j, 'reverse'));
        $this->assertEquals('test_id', $this->getProtected($j, 'master_field'));
        $this->assertEquals('foo_id', $this->getProtected($j, 'foreign_field'));
    }