@@ -45,7 +45,7 @@ public function testPerformanceDidNotChangeForStableEndpoints() {
4545 }
4646
4747 if (!str_contains ($ collectionEndpoint , '/content_node ' )) {
48- $ fixtureFor = $ this -> getFixtureFor ($ collectionEndpoint );
48+ $ fixtureFor = self :: getFixtureFor ($ collectionEndpoint );
4949 list ($ statusCode , $ queryCount , $ executionTimeSeconds ) = $ this ->measurePerformanceFor ("{$ collectionEndpoint }/ {$ fixtureFor ->getId ()}" );
5050 $ responseCodes ["{$ collectionEndpoint }/item " ] = $ statusCode ;
5151 $ numberOfQueries ["{$ collectionEndpoint }/item " ] = $ queryCount ;
@@ -94,7 +94,8 @@ public function testNumberOfQueriesDidNotChangeForContentNodeCollectionEndpoints
9494 if ('test ' !== $ this ->getEnvironment ()) {
9595 self ::markTestSkipped (__FUNCTION__ .' is only run in test environment, not in ' .$ this ->getEnvironment ());
9696 }
97- list ($ statusCode , $ queryCount , $ executionTimeSeconds ) = $ this ->measurePerformanceFor ($ collectionEndpoint );
97+ list ($ statusCode , $ queryCount , $ executionTimeSeconds )
98+ = $ this ->measurePerformanceFor ($ collectionEndpoint .'?camp=/camps/ ' .self ::getFixtureFor ('/camps ' )->getId ());
9899
99100 assertThat ($ statusCode , equalTo (200 ));
100101
@@ -127,7 +128,7 @@ public function testNumberOfQueriesDidNotChangeForContentNodeItemEndpoints(strin
127128 if ('/content_nodes ' === $ collectionEndpoint ) {
128129 self ::markTestSkipped ("{$ collectionEndpoint } does not support get item endpoint " );
129130 }
130- $ fixtureFor = $ this -> getFixtureFor ($ collectionEndpoint );
131+ $ fixtureFor = self :: getFixtureFor ($ collectionEndpoint );
131132 list ($ statusCode , $ queryCount , $ executionTimeSeconds ) = $ this ->measurePerformanceFor ("{$ collectionEndpoint }/ {$ fixtureFor ->getId ()}" );
132133
133134 assertThat ($ statusCode , equalTo (200 ));
@@ -198,19 +199,19 @@ protected function getSnapshotId(): string {
198199 private static function getContentNodeEndpointQueryCountRanges (): array {
199200 return [
200201 '/content_nodes ' => [13 , 15 ],
201- '/content_node/column_layouts ' => [6 , 6 ],
202+ '/content_node/column_layouts ' => [7 , 7 ],
202203 '/content_node/column_layouts/item ' => [9 , 9 ],
203204 '/content_node/checklist_nodes ' => [6 , 7 ],
204205 '/content_node/checklist_nodes/item ' => [9 , 9 ],
205206 '/content_node/material_nodes ' => [6 , 7 ],
206207 '/content_node/material_nodes/item ' => [9 , 9 ],
207- '/content_node/multi_selects ' => [6 , 7 ],
208+ '/content_node/multi_selects ' => [7 , 8 ],
208209 '/content_node/multi_selects/item ' => [9 , 9 ],
209- '/content_node/responsive_layouts ' => [6 , 6 ],
210+ '/content_node/responsive_layouts ' => [7 , 7 ],
210211 '/content_node/responsive_layouts/item ' => [9 , 9 ],
211- '/content_node/single_texts ' => [6 , 7 ],
212+ '/content_node/single_texts ' => [7 , 8 ],
212213 '/content_node/single_texts/item ' => [9 , 9 ],
213- '/content_node/storyboards ' => [6 , 7 ],
214+ '/content_node/storyboards ' => [7 , 8 ],
214215 '/content_node/storyboards/item ' => [9 , 9 ],
215216 ];
216217 }
@@ -291,7 +292,7 @@ private function getSubresourceUrls(): array {
291292 ];
292293 }
293294
294- private function getFixtureFor (string $ collectionEndpoint ) {
295+ private static function getFixtureFor (string $ collectionEndpoint ) {
295296 $ fixtures = FixtureStore::getFixtures ();
296297
297298 return ReadItemFixtureMap::get ($ collectionEndpoint , $ fixtures );
0 commit comments