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

testResetAllPasswords() public method

Reset all passwords
public testResetAllPasswords ( ) : void
return 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']);
    }