CakeDC\Users\Test\TestCase\Shell\UsersShellTest::setUp PHP Method

setUp() public method

Set up
public setUp ( ) : void
return void
    public function setUp()
    {
        parent::setUp();
        $this->out = new ConsoleOutput();
        $this->io = $this->getMockBuilder('Cake\\Console\\ConsoleIo')->getMock();
        $this->Users = TableRegistry::get('CakeDC/Users.Users');
        $this->Shell = $this->getMockBuilder('CakeDC\\Users\\Shell\\UsersShell')->setMethods(['in', 'out', '_stop', 'clear', '_usernameSeed', '_generateRandomPassword', '_generateRandomUsername', '_generatedHashedPassword', 'error', '_updateUser'])->setConstructorArgs([$this->io])->getMock();
        $this->Shell->Users = $this->getMockBuilder('CakeDC\\Users\\Model\\Table\\UsersTable')->setMethods(['generateUniqueUsername', 'newEntity', 'save', 'updateAll'])->getMock();
        $this->Shell->Command = $this->getMockBuilder('Cake\\Shell\\Task\\CommandTask')->setMethods(['in', '_stop', 'clear', 'out'])->setConstructorArgs([$this->io])->getMock();
    }