Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Nov 10, 2023
1 parent ce2f14c commit 51fe8f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/lib/Validator/LayoutNameValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
*/
public function testValidate(?string $value, bool $isValid): void
{
if ($value !== null) {
if ($value !== null && $value !== '') {
$this->layoutServiceMock
->expects(self::once())
->method('layoutNameExists')
Expand Down Expand Up @@ -72,6 +72,7 @@ public static function validateDataProvider(): iterable
['My layout', true],
['My layout', false],
[null, true],
['', true],
];
}

Expand Down

0 comments on commit 51fe8f8

Please sign in to comment.