CakeDC\Users\Test\TestCase\Shell\UsersShellTest::testResetAllPasswords PHP 메소드

testResetAllPasswords() 공개 메소드

Reset all passwords
public testResetAllPasswords ( ) : void
리턴 void
    public function testResetAllPasswords()
    {
        $this->Shell->expects($this->once())->method('_generatedHashedPassword')->will($this->returnValue('hashedPasssword'));
        $this->Shell->Users->expects($this->once())->method('updateAll')->with(['password' => 'hashedPasssword'], ['id IS NOT NULL']);
        $this->Shell->runCommand(['resetAllPasswords', '123']);
    }