Skip to content

Commit 75bb2c3

Browse files
committed
Fix #27523: fix tests for phpunit9 and php7.4
1 parent 347602f commit 75bb2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Developer/Test/Unit/Console/Command/GeneratePatchCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class GeneratePatchCommandTest extends TestCase
4444
*/
4545
private $command;
4646

47-
protected function setUp()
47+
protected function setUp(): void
4848
{
4949
$this->componentRegistrarMock = $this->createMock(ComponentRegistrar::class);
5050
$this->directoryListMock = $this->createMock(DirectoryList::class);
@@ -86,7 +86,7 @@ public function testExecute()
8686
GeneratePatchCommand::INPUT_KEY_PATCH_NAME => 'SomePatch'
8787
]
8888
);
89-
$this->assertContains('successfully generated', $commandTester->getDisplay());
89+
$this->assertStringContainsString('successfully generated', $commandTester->getDisplay());
9090
}
9191

9292
public function testWrongParameter()

0 commit comments

Comments
 (0)