CakeDC\Users\Test\TestCase\Auth\ApiKeyAuthenticateTest::testAuthenticateDefaultAllFinder PHP 메소드

testAuthenticateDefaultAllFinder() 공개 메소드

test
    public function testAuthenticateDefaultAllFinder()
    {
        Configure::write('Auth.authenticate.all.finder', null);
        $request = new Request('/?api_key=yyy');
        $result = $this->apiKey->authenticate($request, new Response());
        $this->assertEquals('user-1', $result['username']);
    }