Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions tests/TestBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@
exit('Could not find TestBootstrapper.php');
}

$projectDir = $_SERVER['PROJECT_ROOT'] ?? dirname(__DIR__, 4);

// Install dependency first: calling plugins install hook needs Assistant schema
(new TestBootstrapper())
->setProjectDir($projectDir)
->setLoadEnvFile(true)
->addActivePlugins('SwagMigrationAssistant')
->bootstrap();

return (new TestBootstrapper())
->setProjectDir($_SERVER['PROJECT_ROOT'] ?? dirname(__DIR__, 4))
->setProjectDir($projectDir)
->setLoadEnvFile(true)
->addActivePlugins('SwagMigrationAssistant', 'SwagMigrationMagento')
->setForceInstall(false)
->setForceInstallPlugins(true)
->addCallingPlugin()
->bootstrap()
->setClassLoader(require dirname(__DIR__) . '/vendor/autoload.php')
Expand Down
Loading