Cviebrock\EloquentTaggable\Test\TestCase::setUpDatabase PHP Method

setUpDatabase() protected method

protected setUpDatabase ( Illuminate\Foundation\Application $app )
$app Illuminate\Foundation\Application
    protected function setUpDatabase($app)
    {
        // Create the taggable tables
        $this->artisan('migrate', ['--database' => 'testbench', '--realpath' => realpath(__DIR__ . '/../resources/database/migrations')]);
        // Create our test tables
        $this->artisan('migrate', ['--database' => 'testbench', '--realpath' => realpath(__DIR__ . '/database/migrations')]);
        $this->beforeApplicationDestroyed(function () {
            $this->artisan('migrate:rollback');
        });
    }