Neos\Flow\Tests\Unit\Security\Cryptography\HashServiceTest::validatePasswordWithoutStrategyIdentifierUsesDefaultStrategy PHP Method

validatePasswordWithoutStrategyIdentifierUsesDefaultStrategy() public method

test
    public function validatePasswordWithoutStrategyIdentifierUsesDefaultStrategy()
    {
        $mockStrategy = $this->createMock(PasswordHashingStrategyInterface::class);
        $this->mockObjectManager->expects($this->atLeastOnce())->method('get')->with(TestHashingStrategy::class)->will($this->returnValue($mockStrategy));
        $mockStrategy->expects($this->atLeastOnce())->method('validatePassword')->will($this->returnValue(true));
        $this->hashService->validatePassword('myTestPassword', '---hashed-password---');
    }