88use Drupal \Tests \node \Traits \NodeCreationTrait ;
99use Drupal \Tests \user \Traits \UserCreationTrait ;
1010use Drupal \user \Entity \User ;
11- use Symfony \Component \HttpFoundation \ParameterBag ;
11+ use Symfony \Component \HttpFoundation \InputBag ;
1212use Symfony \Component \HttpFoundation \Request ;
1313
1414/**
@@ -45,7 +45,6 @@ protected function setUp(): void {
4545 $ this ->installEntitySchema ('node ' );
4646 $ this ->installEntitySchema ('user ' );
4747 $ this ->installConfig (['filter ' , 'next ' ]);
48- $ this ->installSchema ('system ' , ['sequences ' ]);
4948 $ this ->installSchema ('node ' , ['node_access ' ]);
5049
5150 $ type = NodeType::create ([
@@ -91,14 +90,14 @@ public function testPageLimit() {
9190
9291 // Default using \Drupal\jsonapi\Query\OffsetPage::SIZE_MAX.
9392 $ request = Request::create ('/jsonapi/node/article ' );
94- $ request ->query = new ParameterBag ();
93+ $ request ->query = new InputBag ();
9594 $ response = $ entity_resource ->getCollection ($ resource_type , $ request );
9695 $ data = $ response ->getResponseData ()->getData ();
9796 $ this ->assertSame (50 , $ data ->count ());
9897
9998 // With page limit.
10099 $ request = Request::create ('/jsonapi/node/article ' );
101- $ request ->query = new ParameterBag ([
100+ $ request ->query = new InputBag ([
102101 'page ' => [
103102 'limit ' => 10 ,
104103 ],
@@ -109,7 +108,7 @@ public function testPageLimit() {
109108
110109 // With page limit over size max.
111110 $ request = Request::create ('/jsonapi/node/article ' );
112- $ request ->query = new ParameterBag ([
111+ $ request ->query = new InputBag ([
113112 'page ' => [
114113 'limit ' => 100 ,
115114 ],
@@ -120,7 +119,7 @@ public function testPageLimit() {
120119
121120 // With page limit and offset.
122121 $ request = Request::create ('/jsonapi/node/article ' );
123- $ request ->query = new ParameterBag ([
122+ $ request ->query = new InputBag ([
124123 'page ' => [
125124 'offset ' => 2 ,
126125 'limit ' => 5 ,
@@ -132,7 +131,7 @@ public function testPageLimit() {
132131
133132 // With fields as sparse fieldset.
134133 $ request = Request::create ('/jsonapi/node/article ' );
135- $ request ->query = new ParameterBag ([
134+ $ request ->query = new InputBag ([
136135 'fields ' => [
137136 'node--article ' => 'title ' ,
138137 ],
@@ -143,7 +142,7 @@ public function testPageLimit() {
143142
144143 // Using sparse fieldset path override.
145144 $ request = Request::create ('/jsonapi/node/article ' );
146- $ request ->query = new ParameterBag ([
145+ $ request ->query = new InputBag ([
147146 'fields ' => [
148147 'node--article ' => 'path,title ' ,
149148 ],
@@ -154,7 +153,7 @@ public function testPageLimit() {
154153
155154 // Using sparse fieldset path override and limit.
156155 $ request = Request::create ('/jsonapi/node/article ' );
157- $ request ->query = new ParameterBag ([
156+ $ request ->query = new InputBag ([
158157 'fields ' => [
159158 'node--article ' => 'path,title ' ,
160159 ],
@@ -168,7 +167,7 @@ public function testPageLimit() {
168167
169168 // Using sparse fieldset path override and limit.
170169 $ request = Request::create ('/jsonapi/node/article ' );
171- $ request ->query = new ParameterBag ([
170+ $ request ->query = new InputBag ([
172171 'fields ' => [
173172 'node--article ' => 'path,title ' ,
174173 ],
0 commit comments