Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a02bb42

Browse filesBrowse files
Fix merge
1 parent 5148549 commit a02bb42
Copy full SHA for a02bb42

File tree

Expand file treeCollapse file tree

1 file changed

+0
-23
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-23
lines changed

‎src/Symfony/Component/PasswordHasher/Tests/Hasher/PasswordHasherFactoryTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/PasswordHasher/Tests/Hasher/PasswordHasherFactoryTest.php
-23Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -216,29 +216,6 @@ public function testMigrateFromWithCustomInstance()
216216
$this->assertTrue($hasher->verify($digest->hash('foo', null), 'foo', null));
217217
$this->assertStringStartsWith(\SODIUM_CRYPTO_PWHASH_STRPREFIX, $hasher->hash('foo', null));
218218
}
219-
220-
/**
221-
* @group legacy
222-
*/
223-
public function testMigrateFromLegacy()
224-
{
225-
if (!SodiumPasswordHasher::isSupported()) {
226-
$this->markTestSkipped('Sodium is not available');
227-
}
228-
229-
$factory = new PasswordHasherFactory([
230-
'plaintext_encoder' => $plaintext = new PlaintextPasswordEncoder(),
231-
SomeUser::class => ['algorithm' => 'sodium', 'migrate_from' => ['bcrypt', 'plaintext_encoder']],
232-
]);
233-
234-
$hasher = $factory->getPasswordHasher(SomeUser::class);
235-
$this->assertInstanceOf(MigratingPasswordHasher::class, $hasher);
236-
237-
$this->assertTrue($hasher->verify((new SodiumPasswordHasher())->hash('foo', null), 'foo', null));
238-
$this->assertTrue($hasher->verify((new NativePasswordHasher(null, null, null, \PASSWORD_BCRYPT))->hash('foo', null), 'foo', null));
239-
$this->assertTrue($hasher->verify($plaintext->encodePassword('foo', null), 'foo', null));
240-
$this->assertStringStartsWith(\SODIUM_CRYPTO_PWHASH_STRPREFIX, $hasher->hash('foo', null));
241-
}
242219
}
243220

244221
class SomeUser implements PasswordAuthenticatedUserInterface

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.