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

hashPasswordWithoutStrategyIdentifierUsesConfiguredDefaultStrategy() public method

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