Acl\Test\TestCase\Auth\CrudAuthorizeTest::testAuthorizeNoMappedAction PHP Method

testAuthorizeNoMappedAction() public method

test authorize() without a mapped action, ensure an error is generated.
public testAuthorizeNoMappedAction ( ) : void
return void
    public function testAuthorizeNoMappedAction()
    {
        $request = new Request('/posts/foobar');
        $request->addParams(['controller' => 'posts', 'action' => 'foobar']);
        $user = ['User' => ['username' => 'mark']];
        $this->auth->authorize($user, $request);
    }