Skip to content

Commit 4586bb7

Browse files
Lidbettertaylorotwell
authored andcommitted
Return the used traits from setUpTraits (#19486)
1 parent cb48cf5 commit 4586bb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/Foundation/Testing/TestCase.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function refreshApplication()
9292
/**
9393
* Boot the testing helper traits.
9494
*
95-
* @return void
95+
* @return array
9696
*/
9797
protected function setUpTraits()
9898
{
@@ -113,6 +113,8 @@ protected function setUpTraits()
113113
if (isset($uses[WithoutEvents::class])) {
114114
$this->disableEventsForAllTests();
115115
}
116+
117+
return $uses;
116118
}
117119

118120
/**

0 commit comments

Comments
 (0)