@@ -91,31 +91,31 @@ public function getRequestResponse(): \Generator
9191 ];
9292
9393 yield 'Should be ignored because the response was not successful (404) but there was no ld+json data ' => [
94- Request::create ('/foobar ' , ' GET ' ),
94+ Request::create ('/foobar ' ),
9595 new Response ('' , 404 ),
9696 SearchIndexListener::FEATURE_DELETE | SearchIndexListener::FEATURE_INDEX ,
9797 false ,
9898 false ,
9999 ];
100100
101101 yield 'Should be deleted because the response was not successful (404) ' => [
102- Request::create ('/foobar ' , ' GET ' ),
102+ Request::create ('/foobar ' ),
103103 new Response ('<html><body><script type="application/ld+json">{"@context":"https:\/\/contao.org\/","@type":"Page","pageId":2,"noSearch":false,"protected":false,"groups":[],"fePreview":false}</script></body></html> ' , 404 ),
104104 SearchIndexListener::FEATURE_DELETE | SearchIndexListener::FEATURE_INDEX ,
105105 false ,
106106 true ,
107107 ];
108108
109109 yield 'Should be deleted because the response was not successful (403) ' => [
110- Request::create ('/foobar ' , ' GET ' ),
110+ Request::create ('/foobar ' ),
111111 new Response ('<html><body><script type="application/ld+json">{"@context":"https:\/\/contao.org\/","@type":"Page","pageId":2,"noSearch":false,"protected":false,"groups":[],"fePreview":false}</script></body></html> ' , 403 ),
112112 SearchIndexListener::FEATURE_DELETE | SearchIndexListener::FEATURE_INDEX ,
113113 false ,
114114 true ,
115115 ];
116116
117117 yield 'Should not be deleted because even though the response was not successful (403), it was disabled by the feature flag ' => [
118- Request::create ('/foobar ' , ' GET ' ),
118+ Request::create ('/foobar ' ),
119119 new Response ('<html><body><script type="application/ld+json">{"@context":"https:\/\/contao.org\/","@type":"Page","pageId":2,"noSearch":false,"protected":false,"groups":[],"fePreview":false}</script></body></html> ' , 403 ),
120120 SearchIndexListener::FEATURE_INDEX ,
121121 false ,
0 commit comments