Skip to content

Commit

Permalink
[TASK] Add a test to cover undefined fluid variable as argument
Browse files Browse the repository at this point in the history
This change adds a basic test to show that null-coalsing operator
guard along with a string cast is needed when accessing viewhelper
arguments. Even if registered as required and of type string.

Note: Expected to have a failing functional test now !

The issue should be fixed in a dedicated follow up.
  • Loading branch information
sbuerk authored and calien666 committed Jul 21, 2023
1 parent 625ef14 commit 87c071b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public static function renderDataProvider(): \Generator
[],
'elseArgument',
];

yield 'extension provided as undefined fluid variable placeholder, await else' => [
'<deepl:be.extensionActive extension="{someUndefinedVariable}" then="thenArgument" else="elseArgument" />',
[],
'elseArgument',
];
}
/**
* @test
Expand Down

0 comments on commit 87c071b

Please sign in to comment.