diff --git a/tests/bundle/Functional/SearchView/Criterion/ContentNameTest.php b/tests/bundle/Functional/SearchView/Criterion/ContentNameTest.php new file mode 100644 index 00000000..5495a10a --- /dev/null +++ b/tests/bundle/Functional/SearchView/Criterion/ContentNameTest.php @@ -0,0 +1,36 @@ + + */ + public function getCriteriaPayloads(): iterable + { + yield 'Return content items that contain "test" in name' => [ + 'json', + $this->buildJsonCriterionQuery('"ContentNameCriterion": "test*"'), + 3, + ]; + + yield 'No content items found with article in name' => [ + 'json', + $this->buildJsonCriterionQuery('"ContentNameCriterion": "*article*"'), + 0, + ]; + } +}