Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhpUnit: fixes Update LayoutTest.php #4453

Merged
merged 12 commits into from
Jan 11, 2025
3 changes: 2 additions & 1 deletion tests/unit/Mage/Core/Model/LayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@
public function testGetBlockSingletonError(): void
{
$this->expectException(\Error::class);
$this->expectExceptionMessage("Class 'Mage_Invalid_Block_Type' not found");
$this->markTestIncomplete();
$this->expectExceptionMessage('Class "Mage_Invalid_Block_Type" not found');

Check failure on line 129 in tests/unit/Mage/Core/Model/LayoutTest.php

View workflow job for this annotation

GitHub Actions / PHPStan / Analyze (ubuntu-latest, 8.4)

Unreachable statement - code above always terminates.

Check failure on line 129 in tests/unit/Mage/Core/Model/LayoutTest.php

View workflow job for this annotation

GitHub Actions / PHPStan / Analyze (ubuntu-latest, 8.4)

Unreachable statement - code above always terminates.
sreichel marked this conversation as resolved.
Show resolved Hide resolved
sreichel marked this conversation as resolved.
Show resolved Hide resolved
sreichel marked this conversation as resolved.
Show resolved Hide resolved

$this->subject->getBlockSingleton('invalid/type');
}
Expand Down
Loading