From bfa5c95965356dd2b96cb9c7451a559a7d90086c Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Thu, 26 Sep 2024 12:33:25 +0200 Subject: [PATCH] TASK: Add test for SearchTermMatcher to not crash on nested null value --- .../ContentGraph/Filter/SearchTerm/SearchTermMatcherTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Neos.ContentRepository.Core/Tests/Unit/Projection/ContentGraph/Filter/SearchTerm/SearchTermMatcherTest.php b/Neos.ContentRepository.Core/Tests/Unit/Projection/ContentGraph/Filter/SearchTerm/SearchTermMatcherTest.php index eaf22358166..26d5f418e99 100644 --- a/Neos.ContentRepository.Core/Tests/Unit/Projection/ContentGraph/Filter/SearchTerm/SearchTermMatcherTest.php +++ b/Neos.ContentRepository.Core/Tests/Unit/Projection/ContentGraph/Filter/SearchTerm/SearchTermMatcherTest.php @@ -123,6 +123,7 @@ public function notMatchingExamples(): iterable yield 'array with unmatched string' => ['hello', self::value(['hi'])]; yield 'array key is not considered matching' => ['key', self::value(['key' => 'foo'])]; yield 'nested array key is not considered matching' => ['key', self::value([['key' => 'foo']])]; + yield 'array with null value' => ['foo', self::value([null])]; } /**