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']);
    }