Skip to content

Commit 931130e

Browse files
committed
test for defer + merge
1 parent 141e693 commit 931130e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/DeferPropTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ public function test_can_invoke(): void
1616
$this->assertSame('A deferred value', $deferProp());
1717
}
1818

19+
public function test_can_invoke_and_merge(): void
20+
{
21+
$deferProp = (new DeferProp(function () {
22+
return 'A deferred value';
23+
}))->merge();
24+
25+
$this->assertSame('A deferred value', $deferProp());
26+
}
27+
1928
public function test_can_resolve_bindings_when_invoked(): void
2029
{
2130
$deferProp = new DeferProp(function (Request $request) {

0 commit comments

Comments
 (0)