Skip to content

Commit e555230

Browse files
committed
PB-494: Update code to be compatible with PHP 7.4
- update deprecated expectException
1 parent fc78dd5 commit e555230

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

dev/tests/integration/testsuite/Magento/PageBuilder/Model/Config/ContentType/ReaderTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ protected function setUp(): void
3636
);
3737
}
3838

39-
/**
40-
* @expectedException \Magento\Framework\Exception\LocalizedException
41-
*/
4239
public function testPartial()
4340
{
41+
$this->expectException(\Magento\Framework\Exception\LocalizedException::class);
4442
$file = file_get_contents(__DIR__ . '/../../../_files/content_type/type3_content_type2.xml');
4543
$this->fileResolverMock->expects($this->once())
4644
->method('get')

dev/tests/integration/testsuite/Magento/PageBuilder/Model/Config/MenuSection/ReaderTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ protected function setUp(): void
3636
);
3737
}
3838

39-
/**
40-
* @expectedException \Magento\Framework\Exception\LocalizedException
41-
*/
4239
public function testPartial()
4340
{
41+
$this->expectException(\Magento\Framework\Exception\LocalizedException::class);
4442
$file = file_get_contents(__DIR__ . '/../../../_files/content_type/menu_section3.xml');
4543
$this->fileResolverMock->expects($this->once())
4644
->method('get')

0 commit comments

Comments
 (0)