Skip to content

Commit 15bbee4

Browse files
authored
Merge pull request #2693 from tarlepp/chore(deps)/phpunit-major-update
Feat - PHPUnit major upgrade
2 parents b9b9c6a + 27b2354 commit 15bbee4

File tree

87 files changed

+729
-731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+729
-731
lines changed

tests/Integration/AutoMapper/ApiKey/RequestMapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testThatTransformUserGroupsCallsExpectedResourceMethod(string $d
5252
$userGroup = new UserGroup();
5353

5454
$resource
55-
->expects(self::once())
55+
->expects($this->once())
5656
->method('getReference')
5757
->with($userGroup->getId())
5858
->willReturn($userGroup);

tests/Integration/AutoMapper/User/RequestMapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testThatTransformUserGroupsCallsExpectedResourceMethod(string $d
5353
$userGroup = new UserGroup();
5454

5555
$resource
56-
->expects(self::once())
56+
->expects($this->once())
5757
->method('getReference')
5858
->with($userGroup->getId())
5959
->willReturn($userGroup);

tests/Integration/AutoMapper/UserGroup/RequestMapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testThatTransformUserGroupsCallsExpectedResourceMethod(string $d
5252
$role = new Role('Some Role');
5353

5454
$resource
55-
->expects(self::once())
55+
->expects($this->once())
5656
->method('getReference')
5757
->with($role->getId())
5858
->willReturn($role);

tests/Integration/Compiler/StopwatchCompilerPassTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testThatFindTaggedServiceIdsMethodIsCalled(): void
2727
$container = $this->getMockBuilder(ContainerBuilder::class)->disableOriginalConstructor()->getMock();
2828

2929
$container
30-
->expects(self::exactly(5))
30+
->expects($this->exactly(5))
3131
->method('findTaggedServiceIds')
3232
->willReturn([]);
3333

@@ -40,7 +40,7 @@ public function testThatIfServiceStartsWithAppNoOtherContainerMethodsAreCalled()
4040
$container = $this->getMockBuilder(ContainerBuilder::class)->disableOriginalConstructor()->getMock();
4141

4242
$container
43-
->expects(self::exactly(5))
43+
->expects($this->exactly(5))
4444
->method('findTaggedServiceIds')
4545
->willReturn([
4646
stdClass::class => [],
@@ -63,20 +63,20 @@ public function testThatAllExpectedContainerMethodsAreCalled(): void
6363
$definition = $this->getMockBuilder(Definition::class)->disableOriginalConstructor()->getMock();
6464

6565
$container
66-
->expects(self::exactly(5))
66+
->expects($this->exactly(5))
6767
->method('findTaggedServiceIds')
6868
->willReturn([
6969
'App\Foo' => [],
7070
]);
7171

7272
$container
73-
->expects(self::exactly(5))
73+
->expects($this->exactly(5))
7474
->method('getDefinition')
7575
->with('App\Foo')
7676
->willReturn($definition);
7777

7878
$container
79-
->expects(self::exactly(5))
79+
->expects($this->exactly(5))
8080
->method('setDefinition')
8181
->with('App\Foo.stopwatch');
8282

tests/Integration/Controller/HealthzControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ public function testThatInvokeMethodIsCallingExpectedMethods(): void
4444
->getMock();
4545

4646
$healthzService
47-
->expects(self::once())
47+
->expects($this->once())
4848
->method('check')
4949
->willReturn($healthz);
5050

5151
$responseHandler
52-
->expects(self::once())
52+
->expects($this->once())
5353
->method('createResponse')
5454
->with(
5555
$request,

tests/Integration/Controller/VersionControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testThatInvokeMethodIsCallingExpectedMethods(): void
2727
->getMock();
2828

2929
$version
30-
->expects(self::once())
30+
->expects($this->once())
3131
->method('get')
3232
->willReturn('1.0.0');
3333

tests/Integration/Controller/v1/Profile/GroupsControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testThatInvokeMethodCallsExpectedMethods(): void
3232
$serializer = $this->getMockBuilder(SerializerInterface::class)->getMock();
3333

3434
$serializer
35-
->expects(self::once())
35+
->expects($this->once())
3636
->method('serialize')
3737
->with(
3838
$user->getUserGroups()->toArray(),

tests/Integration/Controller/v1/Profile/IndexControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testThatInvokeMethodCallsExpectedMethods(): void
3737
->getMock();
3838

3939
$serializer
40-
->expects(self::once())
40+
->expects($this->once())
4141
->method('serialize')
4242
->with(
4343
$user,
@@ -49,7 +49,7 @@ public function testThatInvokeMethodCallsExpectedMethods(): void
4949
->willReturn('{"roles": ["foo", "bar"]}');
5050

5151
$rolesService
52-
->expects(self::once())
52+
->expects($this->once())
5353
->method('getInheritedRoles')
5454
->with(['foo', 'bar'])
5555
->willReturn(['foo', 'bar']);

tests/Integration/Controller/v1/Profile/RolesControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testThatInvokeMethodCallsExpectedMethods(): void
3434
->getMock();
3535

3636
$rolesService
37-
->expects(self::once())
37+
->expects($this->once())
3838
->method('getInheritedRoles')
3939
->with($user->getRoles())
4040
->willReturn([]);

tests/Integration/Controller/v1/Role/FindOneRoleControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ public function testThatInvokeMethodCallsExpectedMethods(): void
4848
$request = Request::create('/');
4949

5050
$resource
51-
->expects(self::once())
51+
->expects($this->once())
5252
->method('findOne')
5353
->with('role', true)
5454
->willReturn($role);
5555

5656
$responseHandler
57-
->expects(self::once())
57+
->expects($this->once())
5858
->method('createResponse')
5959
->with($request, $role, $resource);
6060

0 commit comments

Comments
 (0)