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 4905907 commit c639445Copy full SHA for c639445
tests/ResponseFactoryTest.php
@@ -172,6 +172,18 @@ public function test_can_create_deferred_prop(): void
172
});
173
174
$this->assertInstanceOf(DeferProp::class, $deferredProp);
175
+ $this->assertSame($deferredProp->group(), 'default');
176
+ }
177
+
178
+ public function test_can_create_deferred_prop_with_custom_group(): void
179
+ {
180
+ $factory = new ResponseFactory();
181
+ $deferredProp = $factory->defer(function () {
182
+ return 'A deferred value';
183
+ }, 'foo');
184
185
+ $this->assertInstanceOf(DeferProp::class, $deferredProp);
186
+ $this->assertSame($deferredProp->group(), 'foo');
187
}
188
189
public function test_can_create_merged_prop(): void
0 commit comments