| Conditions | 4 |
| Paths | 8 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | protected function setUp(): void |
||
| 25 | { |
||
| 26 | if (! $this->app) { |
||
| 27 | $this->refreshApplication(); |
||
| 28 | } |
||
| 29 | |||
| 30 | $this->setUpTraits(); |
||
| 31 | |||
| 32 | foreach ($this->afterApplicationCreatedCallbacks as $callback) { |
||
| 33 | call_user_func($callback); |
||
| 34 | } |
||
| 35 | |||
| 36 | Facade::clearResolvedInstances(); |
||
| 37 | |||
| 38 | if (class_exists(\Illuminate\Database\Eloquent\Model::class)) { |
||
| 39 | \Illuminate\Database\Eloquent\Model::setEventDispatcher($this->app['events']); |
||
| 40 | } |
||
| 41 | |||
| 42 | $this->setUpHasRun = true; |
||
| 43 | } |
||
| 45 |