Skip to content

Commit c63dcf5

Browse files
Remove calls to getMockForAbstractClass()
1 parent bd4f78c commit c63dcf5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ public static function getSuccessHandlers()
145145

146146
protected function callFactory($id, $config, $userProviderId, $defaultEntryPointId)
147147
{
148-
$factory = $this->getMockForAbstractClass(AbstractFactory::class);
148+
$factory = $this->getMockBuilder(AbstractFactory::class)->onlyMethods([
149+
'createAuthProvider',
150+
'getListenerId',
151+
'getKey',
152+
'getPosition',
153+
])->getMock();
149154

150155
$factory
151156
->expects($this->once())

0 commit comments

Comments
 (0)