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/**
@@ -91,14 +91,14 @@ public function testPageLimit() {
9191
9292 // Default using \Drupal\jsonapi\Query\OffsetPage::SIZE_MAX.
9393 $ request = Request::create ('/jsonapi/node/article ' );
94- $ request ->query = new ParameterBag ();
94+ $ request ->query = new InputBag ();
9595 $ response = $ entity_resource ->getCollection ($ resource_type , $ request );
9696 $ data = $ response ->getResponseData ()->getData ();
9797 $ this ->assertSame (50 , $ data ->count ());
9898
9999 // With page limit.
100100 $ request = Request::create ('/jsonapi/node/article ' );
101- $ request ->query = new ParameterBag ([
101+ $ request ->query = new InputBag ([
102102 'page ' => [
103103 'limit ' => 10 ,
104104 ],
@@ -109,7 +109,7 @@ public function testPageLimit() {
109109
110110 // With page limit over size max.
111111 $ request = Request::create ('/jsonapi/node/article ' );
112- $ request ->query = new ParameterBag ([
112+ $ request ->query = new InputBag ([
113113 'page ' => [
114114 'limit ' => 100 ,
115115 ],
@@ -120,7 +120,7 @@ public function testPageLimit() {
120120
121121 // With page limit and offset.
122122 $ request = Request::create ('/jsonapi/node/article ' );
123- $ request ->query = new ParameterBag ([
123+ $ request ->query = new InputBag ([
124124 'page ' => [
125125 'offset ' => 2 ,
126126 'limit ' => 5 ,
@@ -132,7 +132,7 @@ public function testPageLimit() {
132132
133133 // With fields as sparse fieldset.
134134 $ request = Request::create ('/jsonapi/node/article ' );
135- $ request ->query = new ParameterBag ([
135+ $ request ->query = new InputBag ([
136136 'fields ' => [
137137 'node--article ' => 'title ' ,
138138 ],
@@ -143,7 +143,7 @@ public function testPageLimit() {
143143
144144 // Using sparse fieldset path override.
145145 $ request = Request::create ('/jsonapi/node/article ' );
146- $ request ->query = new ParameterBag ([
146+ $ request ->query = new InputBag ([
147147 'fields ' => [
148148 'node--article ' => 'path,title ' ,
149149 ],
@@ -154,7 +154,7 @@ public function testPageLimit() {
154154
155155 // Using sparse fieldset path override and limit.
156156 $ request = Request::create ('/jsonapi/node/article ' );
157- $ request ->query = new ParameterBag ([
157+ $ request ->query = new InputBag ([
158158 'fields ' => [
159159 'node--article ' => 'path,title ' ,
160160 ],
@@ -168,7 +168,7 @@ public function testPageLimit() {
168168
169169 // Using sparse fieldset path override and limit.
170170 $ request = Request::create ('/jsonapi/node/article ' );
171- $ request ->query = new ParameterBag ([
171+ $ request ->query = new InputBag ([
172172 'fields ' => [
173173 'node--article ' => 'path,title ' ,
174174 ],
0 commit comments