mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '5' into 6
This commit is contained in:
commit
615402d788
@ -32,6 +32,14 @@ class VersionedMemberAuthenticatorTest extends SapphireTest
|
|||||||
|
|
||||||
// Remove password validation
|
// Remove password validation
|
||||||
Member::set_password_validator(null);
|
Member::set_password_validator(null);
|
||||||
|
|
||||||
|
// Explicity add the Versioned extension to Member, even though it's already in $required_extensions.
|
||||||
|
// This is done to call `unset(self::class::$extra_methods[strtolower($subclass)]);` in
|
||||||
|
// Extensible::add_extension() so when CustomMethods::getExtraMethodConfig() updates the $extra_methods
|
||||||
|
// it will include methods of Versioned such as publishSingle()
|
||||||
|
// This issue will only occur when running subsequent unit test classes in the same process, rather than this
|
||||||
|
// this unit test class in isolation
|
||||||
|
Member::add_extension(Versioned::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function tearDown(): void
|
protected function tearDown(): void
|
||||||
|
Loading…
Reference in New Issue
Block a user