Skip to content

Commit 912868b

Browse files
committed
fixed syntax after code suggestion
1 parent 707422d commit 912868b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/bundle/SystemInfo/Collector/RepositorySystemInfoCollectorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,25 @@ public function testCollect(): void
6464
$this->dbalConnectionMock
6565
->expects(self::once())
6666
->method('getDatabasePlatform')
67-
->will(self::returnValue($this->dbalPlatformMock));
67+
->willReturn($this->dbalPlatformMock);
6868

6969
$this->dbalPlatformMock
7070
->expects(self::once())
7171
->method('getName')
72-
->will(self::returnValue($expected->type));
72+
->willReturn($expected->type);
7373

7474
$this->dbalConnectionMock
7575
->expects(self::once())
7676
->method('getDatabase')
77-
->will(self::returnValue($expected->name));
77+
->willReturn($expected->name);
7878

7979
$this->dbalConnectionMock
8080
->expects(self::once())
8181
->method('getParams')
8282
->willReturn([
8383
'host' => $expected->host,
8484
'user' => $expected->username,
85-
]));
85+
]);
8686

8787
$this->metricsProviderMock
8888
->expects(self::exactly(5))

0 commit comments

Comments
 (0)