<?php namespace Modules\Media\Tests;

use Orchestra\Testbench\TestCase;

abstract class MediaTestCase extends TestCase
{
    protected function getPackageProviders($app)
    {
        return [
            'Modules\Media\Providers\MediaServiceProvider',
            'Pingpong\Modules\ModulesServiceProvider',
            'Intervention\Image\ImageServiceProvider',
        ];
    }
}

<?php namespace Modules\Media\Tests;

use Orchestra\Testbench\TestCase;

abstract class MediaTestCase extends TestCase
{
    protected function getPackageProviders($app)
    {
        return [
            'Modules\Media\Providers\MediaServiceProvider',
            'Pingpong\Modules\ModulesServiceProvider',
            'Intervention\Image\ImageServiceProvider',
        ];
    }

    protected function getEnvironmentSetUp($app)
    {
        $app['path.base'] = __DIR__ . '/..';
        $app->setBasePath(__DIR__ . '/..');
    }
}

Set the app base path
Set the app base path
