N98\Magento\Command\Admin\User\ChangePasswordCommandTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->command = $this->getMockBuilder('\\N98\\Magento\\Command\\Admin\\User\\ChangePasswordCommand')->setMethods(array('getUserModel'))->getMock();
        $this->userModel = $this->getMockBuilder('Mage_Admin_Model_User')->setMethods(array('loadByUsername', 'load', 'getId', 'setPassword', 'validate', 'save'))->disableOriginalConstructor()->getMock();
        $this->command->expects($this->any())->method('getUserModel')->will($this->returnValue($this->userModel));
    }