Skip to content

Instantly share code, notes, and snippets.

@peterfox
Last active March 29, 2019 18:16
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Tests\Support\Authentication;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
/**
* Boot the testing helper traits.
*
* @return array
*/
protected function setUpTraits()
{
$uses = parent::setUpTraits();
if (isset($uses[Authentication::class])) {
$this->setUpUser();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment