CakeDC\Users\Test\TestCase\Controller\Traits\BaseTraitTest::_mockAuth PHP Méthode

_mockAuth() protected méthode

Mock the Auth component
protected _mockAuth ( ) : void
Résultat void
    protected function _mockAuth()
    {
        $this->Trait->Auth = $this->getMockBuilder('Cake\\Controller\\Component\\AuthComponent')->setMethods(['user', 'identify', 'setUser', 'redirectUrl'])->disableOriginalConstructor()->getMock();
    }