mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Rename SS_ prefixed classes (#127)
This commit is contained in:
parent
8c19893b63
commit
c9783741ca
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
namespace SilverStripe\BehatExtension\Console\Processor;
|
namespace SilverStripe\BehatExtension\Console\Processor;
|
||||||
|
|
||||||
use SilverStripe\Core\Manifest\SS_ClassLoader;
|
|
||||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
use Symfony\Component\Console\Command\Command;
|
use Symfony\Component\Console\Command\Command;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Input\InputOption;
|
use Symfony\Component\Console\Input\InputOption;
|
||||||
use Behat\Behat\Console\Processor\InitProcessor as BaseProcessor;
|
use Behat\Behat\Console\Processor\InitProcessor as BaseProcessor;
|
||||||
|
use SilverStripe\Core\Manifest\ClassLoader;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes a project for Behat usage, creating context files.
|
* Initializes a project for Behat usage, creating context files.
|
||||||
@ -77,7 +78,7 @@ class InitProcessor extends BaseProcessor
|
|||||||
// Can't use 'behat.paths.base' since that's locked at this point to base folder (not module)
|
// Can't use 'behat.paths.base' since that's locked at this point to base folder (not module)
|
||||||
$pathSuffix = $this->container->getParameter('behat.silverstripe_extension.context.path_suffix');
|
$pathSuffix = $this->container->getParameter('behat.silverstripe_extension.context.path_suffix');
|
||||||
$currentModuleName = null;
|
$currentModuleName = null;
|
||||||
$modules = SS_ClassLoader::instance()->getManifest()->getModules();
|
$modules = ClassLoader::instance()->getManifest()->getModules();
|
||||||
$currentModuleName = $this->container->getParameter('behat.silverstripe_extension.module');
|
$currentModuleName = $this->container->getParameter('behat.silverstripe_extension.module');
|
||||||
|
|
||||||
// get module from short notation if path starts from @
|
// get module from short notation if path starts from @
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
namespace SilverStripe\BehatExtension\Console\Processor;
|
namespace SilverStripe\BehatExtension\Console\Processor;
|
||||||
|
|
||||||
use SilverStripe\Core\Manifest\SS_ClassLoader;
|
|
||||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
use Symfony\Component\Console\Command\Command;
|
use Symfony\Component\Console\Command\Command;
|
||||||
use Symfony\Component\Console\Input\InputArgument;
|
use Symfony\Component\Console\Input\InputArgument;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Behat\Behat\Console\Processor\LocatorProcessor as BaseProcessor;
|
use Behat\Behat\Console\Processor\LocatorProcessor as BaseProcessor;
|
||||||
|
use SilverStripe\Core\Manifest\ClassLoader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Path locator processor.
|
* Path locator processor.
|
||||||
@ -61,7 +61,7 @@ class LocatorProcessor extends BaseProcessor
|
|||||||
$pathSuffix = $this->container->getParameter('behat.silverstripe_extension.context.path_suffix');
|
$pathSuffix = $this->container->getParameter('behat.silverstripe_extension.context.path_suffix');
|
||||||
|
|
||||||
$currentModuleName = null;
|
$currentModuleName = null;
|
||||||
$modules = SS_ClassLoader::instance()->getManifest()->getModules();
|
$modules = ClassLoader::instance()->getManifest()->getModules();
|
||||||
|
|
||||||
// get module specified in behat.yml
|
// get module specified in behat.yml
|
||||||
$currentModuleName = $this->container->getParameter('behat.silverstripe_extension.module');
|
$currentModuleName = $this->container->getParameter('behat.silverstripe_extension.module');
|
||||||
|
Loading…
Reference in New Issue
Block a user