<?php
class TestCase extends Illuminate\Foundation\Testing\TestCase {
/**
* Creates the application.
*
* @return \Symfony\Component\HttpKernel\HttpKernelInterface
*/
public function createApplication()
{
$unitTesting = true;
$testEnvironment = 'testing';
return require __DIR__.'/../../bootstrap/start.php';
}
public function setUp()
{
Artisan::call('migrate');
}
}
Just fixed it by calling parent::setUp() before Artisan::call();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community