caffeinated/modules

PHPUnit: \Module::all() gives always 0 modules during tests ...

nickurt opened this issue · 1 comments

Hello,

I'm working on PHPUnit-tests in my app, but for some reason the \Module:all() function always gives 0 modules, so I can't get my migrations/seeds working, any solution?

public function setUp()
{
    parent::setUp();

    //

    dd(\Module::all());
}

protected function getPackageProviders($app)
{
    return [
        'Caffeinated\Modules\ModulesServiceProvider',
    ];
}

protected function getEnvironmentSetUp($app)
{
    //
}

protected function getPackageAliases($app)
{
    return [
        'Module' => 'Caffeinated\Modules\Facades\Module'
    ];
}

Moved to the global tests-folder, works now.