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 dffe359 commit 68440efCopy full SHA for 68440ef
tests/Unit/SegmentFakeTest.php
@@ -20,6 +20,15 @@ public function getSegmentIdentifier(): string
20
$this->assertInstanceOf(SegmentFake::class, Segment::fake());
21
});
22
23
+it('can set global context on the fake', function () {
24
+ $context = ['foo' => 'bar'];
25
+
26
+ $fake = Segment::fake();
27
+ Segment::setGlobalContext($context);
28
29
+ expect($fake->getContext())->toBe($context);
30
+});
31
32
it('can test no identities were called', function () {
33
Segment::fake();
34
0 commit comments