CakeDC\Users\Test\TestCase\Controller\Traits\BaseTraitTest::_mockAuth PHP Метод

_mockAuth() защищенный Метод

Mock the Auth component
protected _mockAuth ( ) : void
Результат void
    protected function _mockAuth()
    {
        $this->Trait->Auth = $this->getMockBuilder('Cake\\Controller\\Component\\AuthComponent')->setMethods(['user', 'identify', 'setUser', 'redirectUrl'])->disableOriginalConstructor()->getMock();
    }