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