diff --git a/composer.json b/composer.json index 4b10189..a2cf860 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,10 @@ "magento/framework": ">=100.1", "container-interop/container-interop": "^1.2", "symfony/dependency-injection": ">=2.0", - "symfony/event-dispatcher": ">=2.0" + "symfony/event-dispatcher": ">=2.0", + "magento/module-authorization": "*", + "magento/module-user": "*", + "magento/module-backend": "*" }, "require-dev": { "bex/behat-test-runner": "^1.2.1", diff --git a/src/Bex/Behat/Magento2Extension/HelperContainer/Magento2SymfonyServiceContainer.php b/src/Bex/Behat/Magento2Extension/HelperContainer/Magento2SymfonyServiceContainer.php index 28b6f9a..73636ce 100644 --- a/src/Bex/Behat/Magento2Extension/HelperContainer/Magento2SymfonyServiceContainer.php +++ b/src/Bex/Behat/Magento2Extension/HelperContainer/Magento2SymfonyServiceContainer.php @@ -4,15 +4,6 @@ use Bex\Behat\Magento2Extension\Service\MagentoObjectManager; use Interop\Container\ContainerInterface; -use Magento\Authorization\Model\ResourceModel\Role\Collection; -use Magento\Backend\Model\Auth\Session; -use Magento\Framework\App\Bootstrap; -use Magento\Framework\App\Filesystem\DirectoryList; -use Magento\Framework\App\ObjectManager; -use Magento\Framework\App\State; -use Magento\Framework\ObjectManager\ConfigLoaderInterface; -use Magento\Framework\Registry; -use Magento\User\Model\UserFactory; use Symfony\Component\DependencyInjection\ContainerBuilder as SymfonyServiceContainer; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; diff --git a/src/Bex/Behat/Magento2Extension/Listener/MagentoObjectManagerInitializer.php b/src/Bex/Behat/Magento2Extension/Listener/MagentoObjectManagerInitializer.php index c16ce94..9f108b0 100644 --- a/src/Bex/Behat/Magento2Extension/Listener/MagentoObjectManagerInitializer.php +++ b/src/Bex/Behat/Magento2Extension/Listener/MagentoObjectManagerInitializer.php @@ -5,8 +5,6 @@ use Behat\Testwork\EventDispatcher\Event\BeforeSuiteTested; use Behat\Testwork\EventDispatcher\Event\SuiteTested; use Bex\Behat\Magento2Extension\ServiceContainer\Config; -use Magento\Authorization\Model\ResourceModel\Role\Collection; -use Magento\Backend\Model\Auth\Session; use Magento\Framework\App\Area; use Magento\Framework\App\Bootstrap; use Magento\Framework\App\Filesystem\DirectoryList; @@ -14,8 +12,10 @@ use Magento\Framework\App\State; use Magento\Framework\ObjectManager\ConfigLoaderInterface; use Magento\Framework\Registry; -use Magento\User\Model\UserFactory; use Symfony\Component\EventDispatcher\EventSubscriberInterface; +use Magento\Authorization\Model\ResourceModel\Role\Collection; +use Magento\Backend\Model\Auth\Session; +use Magento\User\Model\UserFactory; class MagentoObjectManagerInitializer implements EventSubscriberInterface { diff --git a/src/Bex/Behat/Magento2Extension/ServiceContainer/Magento2Extension.php b/src/Bex/Behat/Magento2Extension/ServiceContainer/Magento2Extension.php index 751ee5f..5adb93d 100644 --- a/src/Bex/Behat/Magento2Extension/ServiceContainer/Magento2Extension.php +++ b/src/Bex/Behat/Magento2Extension/ServiceContainer/Magento2Extension.php @@ -4,7 +4,6 @@ use Behat\Testwork\ServiceContainer\Extension; use Behat\Testwork\ServiceContainer\ExtensionManager; -use Magento\Framework\App\Http as HttpApplication; use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder;