CakeDC\Users\Auth\Rules\OwnerTest::testAllowedUsingTableAlias PHP Method

testAllowedUsingTableAlias() public method

test
public testAllowedUsingTableAlias ( ) : void
return void
    public function testAllowedUsingTableAlias()
    {
        $this->Owner = new Owner(['table' => 'Posts']);
        $this->request->params = ['pass' => ['00000000-0000-0000-0000-000000000001']];
        $user = ['id' => '00000000-0000-0000-0000-000000000001'];
        $this->assertTrue($this->Owner->allowed($user, 'user', $this->request));
    }