We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1336434 commit 64c8273Copy full SHA for 64c8273
test/AbstractResourceListenerTest.php
@@ -133,4 +133,17 @@ public function testDispatchShouldPassWhitelistedQueryParamsToFetchAllMethod()
133
134
$this->assertEquals($queryParams, $this->listener->testCase->paramsPassedToListener);
135
}
136
+
137
+ /**
138
+ * @group 7
139
+ */
140
+ public function testDispatchShouldPassEmptyArrayToFetchAllMethodIfNoQueryParamsArePresent()
141
+ {
142
+ $event = new ResourceEvent();
143
+ $event->setName('fetchAll');
144
145
+ $this->listener->dispatch($event);
146
147
+ $this->assertEquals([], $this->listener->testCase->paramsPassedToListener);
148
+ }
149
0 commit comments