From 9699a3815888ef09ac26898e44de5c8b132d80e7 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 12 Dec 2017 11:51:17 +0100 Subject: [PATCH] TASK: Adjust test to expect two pages As we now import two pages into db, adjust test assertion. --- Tests/Functional/Indexing/PagesIndexerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Functional/Indexing/PagesIndexerTest.php b/Tests/Functional/Indexing/PagesIndexerTest.php index 244413d..bc26dfd 100644 --- a/Tests/Functional/Indexing/PagesIndexerTest.php +++ b/Tests/Functional/Indexing/PagesIndexerTest.php @@ -48,7 +48,7 @@ class PagesIndexerTest extends AbstractFunctionalTestCase ->with( $this->stringContains($tableName), $this->callback(function ($documents) { - return count($documents) === 1 + return count($documents) === 2 && isset($documents[0]['content']) && $documents[0]['content'] === 'this is the content of header content element that should get indexed Some text in paragraph' && isset($documents[0]['search_abstract']) && $documents[0]['search_abstract'] ===