Waavi\Translation\Test\TestCase::setUpDatabase PHP Method

setUpDatabase() protected method

protected setUpDatabase ( Illuminate\Foundation\Application $app )
$app Illuminate\Foundation\Application
    protected function setUpDatabase($app)
    {
        $this->artisan('migrate', ['--realpath' => realpath(__DIR__ . '/../database/migrations')]);
        // Seed the spanish and english languages
        $languageRepository = \App::make(LanguageRepository::class);
        $languageRepository->create(['locale' => 'en', 'name' => 'English']);
        $languageRepository->create(['locale' => 'es', 'name' => 'Spanish']);
    }