make('Illuminate\Contracts\Console\Kernel')->bootstrap(); return $app; } /** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ public function setUp() { parent::setUp(); } /** * This method is called before the first test of this test class is run. * * @since Method available since Release 3.4.0 */ public static function setUpBeforeClass() { parent::setUpBeforeClass(); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ public function tearDown() { parent::tearDown(); } /** * @param string $class * * @return Mockery\MockInterface */ public function mock($class) { $mock = Mockery::mock($class); $this->app->instance($class, $mock); return $mock; } }