Skip to content

Commit df9e39b

Browse files
committed
Fix PHPUnit deprecations
Signed-off-by: George Steel <[email protected]>
1 parent 65c7a07 commit df9e39b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/BasicAccessFactoryTest.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ public function testInvokeWithContainerEmptyConfig(): void
4747
$container = $this->createMock(ContainerInterface::class);
4848
$container->expects($this->atLeastOnce())
4949
->method('has')
50-
->will($this->returnValueMap([
50+
->willReturnMap([
5151
[UserRepositoryInterface::class, true],
5252
[ResponseFactoryInterface::class, false],
53-
]));
53+
]);
5454
$container->expects($this->atLeastOnce())
5555
->method('get')
56-
->will($this->returnValueMap([
56+
->willReturnMap([
5757
[UserRepositoryInterface::class, $this->userRegister],
5858
[ResponseInterface::class, $this->responseFactory],
5959
['config', []],
60-
]));
60+
]);
6161

6262
$factory = new BasicAccessFactory();
6363

@@ -70,14 +70,14 @@ public function testInvokeWithContainerAndConfig(): void
7070
$container = $this->createMock(ContainerInterface::class);
7171
$container->expects($this->atLeastOnce())
7272
->method('has')
73-
->will($this->returnValueMap([
73+
->willReturnMap([
7474
[UserRepositoryInterface::class, true],
7575
[ResponseFactoryInterface::class, false],
7676
[ResponseInterface::class, true],
77-
]));
77+
]);
7878
$container->expects($this->atLeastOnce())
7979
->method('get')
80-
->will($this->returnValueMap([
80+
->willReturnMap([
8181
[UserRepositoryInterface::class, $this->userRegister],
8282
[ResponseInterface::class, $this->responseFactory],
8383
[
@@ -86,7 +86,7 @@ public function testInvokeWithContainerAndConfig(): void
8686
'authentication' => ['realm' => 'My page'],
8787
],
8888
],
89-
]));
89+
]);
9090

9191
$factory = new BasicAccessFactory();
9292
$basicAccess = $factory($container);

0 commit comments

Comments
 (0)