Skip to content

Commit

Permalink
Return array of $uses from TestCase::setUpTraits().
Browse files Browse the repository at this point in the history
From laravel/framework#19486

Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jun 6, 2017
1 parent d417542 commit fee25a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TestCase.php
Expand Up @@ -105,7 +105,7 @@ protected function refreshApplication()
/**
* Boot the testing helper traits.
*
* @return void
* @return array
*/
protected function setUpTraits()
{
Expand All @@ -126,6 +126,8 @@ protected function setUpTraits()
if (isset($uses[WithoutEvents::class])) {
$this->disableEventsForAllTests();
}

return $uses;
}

/**
Expand Down

0 comments on commit fee25a3

Please sign in to comment.