Use tap
This commit is contained in:
parent
951041c95b
commit
45ebddf30a
|
@ -161,6 +161,10 @@ class TalksExtensionTest extends TestCase
|
||||||
];
|
];
|
||||||
|
|
||||||
$talks = collect([$talkA, $talkB]);
|
$talks = collect([$talkA, $talkB]);
|
||||||
$this->assertCount(3, $this->extension->getEvents($talks));
|
|
||||||
|
tap($this->extension->getEvents($talks), function (Collection $events) {
|
||||||
|
$this->assertCount(3, $events);
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue