Skip to content

Commit ca96672

Browse files
committed
Laravel - fixed not respecting the collect tests setting.
1 parent 4c1455a commit ca96672

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Clockwork/Support/Laravel/Tests/UsesClockwork.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ trait UsesClockwork
1818
// Set up Clockwork in this test case, should be called from the PHPUnit setUp method
1919
protected function setUpClockwork()
2020
{
21+
if (! $this->app->make('clockwork.support')->isCollectingTests()) return;
22+
2123
$this->beforeApplicationDestroyed(function () {
2224
if ($this->app->make('clockwork.support')->isTestFiltered($this->toString())) return;
2325

0 commit comments

Comments
 (0)