From 94a32775f23401a5cc064ea77cf1650d7166eef1 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Sun, 12 Mar 2023 07:44:02 +1100 Subject: [PATCH] Updated namespace. --- README.md | 6 +++--- behat.yml | 4 ++-- composer.json | 4 ++-- .../Context/Initializer/RelativityContextInitializer.php | 4 ++-- .../Context/RelativityAwareContext.php | 2 +- .../Context/RelativityContext.php | 2 +- .../ServiceContainer/BehatRelativityExtension.php | 8 ++++---- 7 files changed, 15 insertions(+), 15 deletions(-) rename src/{IntegratedExperts => DrevOps}/BehatRelativityExtension/Context/Initializer/RelativityContextInitializer.php (92%) rename src/{IntegratedExperts => DrevOps}/BehatRelativityExtension/Context/RelativityAwareContext.php (94%) rename src/{IntegratedExperts => DrevOps}/BehatRelativityExtension/Context/RelativityContext.php (99%) rename src/{IntegratedExperts => DrevOps}/BehatRelativityExtension/ServiceContainer/BehatRelativityExtension.php (88%) diff --git a/README.md b/README.md index 5f07e52..580ad86 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Feature: Google example test ``` ## Installation -`composer require --dev integratedexperts/behat-relativity` +`composer require --dev drevops/behat-relativity` ## usage Example `behat.yml`: @@ -45,11 +45,11 @@ default: suites: default: contexts: - - IntegratedExperts\BehatRelativityExtension\Context\RelativityContext + - DrevOps\BehatRelativityExtension\Context\RelativityContext - FeatureContext extensions: - IntegratedExperts\BehatRelativityExtension: + DrevOps\BehatRelativityExtension: breakpoints: mobile: width: 320 diff --git a/behat.yml b/behat.yml index 8306880..4c4df02 100644 --- a/behat.yml +++ b/behat.yml @@ -8,7 +8,7 @@ default: - docroot: "%paths.base%/tests/behat/fixtures" host: "phpserver" - DrevOps\BehatScreenshotExtension\Context\ScreenshotContext - - IntegratedExperts\BehatRelativityExtension\Context\RelativityContext + - DrevOps\BehatRelativityExtension\Context\RelativityContext - FeatureContext extensions: @@ -25,7 +25,7 @@ default: dir: "%paths.base%/screenshots" fail: true purge: true - IntegratedExperts\BehatRelativityExtension: + DrevOps\BehatRelativityExtension: breakpoints: mobile: width: 320 diff --git a/composer.json b/composer.json index b94616e..d61b0ed 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "integratedexperts/behat-relativity", + "name": "drevops/behat-relativity", "description": "Behat context for relative elements testing.", "type": "library", "license": "GPL-2.0-or-later", @@ -31,7 +31,7 @@ }, "autoload": { "psr-0": { - "IntegratedExperts\\BehatRelativityExtension": "src/" + "DrevOps\\BehatRelativityExtension": "src/" } }, "scripts": { diff --git a/src/IntegratedExperts/BehatRelativityExtension/Context/Initializer/RelativityContextInitializer.php b/src/DrevOps/BehatRelativityExtension/Context/Initializer/RelativityContextInitializer.php similarity index 92% rename from src/IntegratedExperts/BehatRelativityExtension/Context/Initializer/RelativityContextInitializer.php rename to src/DrevOps/BehatRelativityExtension/Context/Initializer/RelativityContextInitializer.php index 79c689e..a5e414b 100644 --- a/src/IntegratedExperts/BehatRelativityExtension/Context/Initializer/RelativityContextInitializer.php +++ b/src/DrevOps/BehatRelativityExtension/Context/Initializer/RelativityContextInitializer.php @@ -4,11 +4,11 @@ * This file is a part of the IntegratesExperts\BehatRelativity package. */ -namespace IntegratedExperts\BehatRelativityExtension\Context\Initializer; +namespace DrevOps\BehatRelativityExtension\Context\Initializer; use Behat\Behat\Context\Context; use Behat\Behat\Context\Initializer\ContextInitializer; -use IntegratedExperts\BehatRelativityExtension\Context\RelativityAwareContext; +use DrevOps\BehatRelativityExtension\Context\RelativityAwareContext; /** * Class RelativityContextInitializer. diff --git a/src/IntegratedExperts/BehatRelativityExtension/Context/RelativityAwareContext.php b/src/DrevOps/BehatRelativityExtension/Context/RelativityAwareContext.php similarity index 94% rename from src/IntegratedExperts/BehatRelativityExtension/Context/RelativityAwareContext.php rename to src/DrevOps/BehatRelativityExtension/Context/RelativityAwareContext.php index d12603d..0c5a35c 100644 --- a/src/IntegratedExperts/BehatRelativityExtension/Context/RelativityAwareContext.php +++ b/src/DrevOps/BehatRelativityExtension/Context/RelativityAwareContext.php @@ -4,7 +4,7 @@ * Behat context interface to enable Relativity. */ -namespace IntegratedExperts\BehatRelativityExtension\Context; +namespace DrevOps\BehatRelativityExtension\Context; use Behat\Behat\Context\Context; diff --git a/src/IntegratedExperts/BehatRelativityExtension/Context/RelativityContext.php b/src/DrevOps/BehatRelativityExtension/Context/RelativityContext.php similarity index 99% rename from src/IntegratedExperts/BehatRelativityExtension/Context/RelativityContext.php rename to src/DrevOps/BehatRelativityExtension/Context/RelativityContext.php index 661fd5f..df5765a 100644 --- a/src/IntegratedExperts/BehatRelativityExtension/Context/RelativityContext.php +++ b/src/DrevOps/BehatRelativityExtension/Context/RelativityContext.php @@ -5,7 +5,7 @@ * Relative components assertions. */ -namespace IntegratedExperts\BehatRelativityExtension\Context; +namespace DrevOps\BehatRelativityExtension\Context; use Behat\Behat\Hook\Scope\BeforeScenarioScope; use Behat\Gherkin\Node\TableNode; diff --git a/src/IntegratedExperts/BehatRelativityExtension/ServiceContainer/BehatRelativityExtension.php b/src/DrevOps/BehatRelativityExtension/ServiceContainer/BehatRelativityExtension.php similarity index 88% rename from src/IntegratedExperts/BehatRelativityExtension/ServiceContainer/BehatRelativityExtension.php rename to src/DrevOps/BehatRelativityExtension/ServiceContainer/BehatRelativityExtension.php index e317e93..b2aec9b 100644 --- a/src/IntegratedExperts/BehatRelativityExtension/ServiceContainer/BehatRelativityExtension.php +++ b/src/DrevOps/BehatRelativityExtension/ServiceContainer/BehatRelativityExtension.php @@ -4,7 +4,7 @@ * Behat relativity extension. */ -namespace IntegratedExperts\BehatRelativityExtension\ServiceContainer; +namespace DrevOps\BehatRelativityExtension\ServiceContainer; use Behat\Behat\Context\ServiceContainer\ContextExtension; use Behat\Testwork\ServiceContainer\Extension as ExtensionInterface; @@ -22,7 +22,7 @@ class BehatRelativityExtension implements ExtensionInterface /** * Extension configuration ID. */ - const MOD_ID = 'integratedexperts_relativity'; + const MOD_ID = 'drevops_relativity'; /** * {@inheritdoc} @@ -94,13 +94,13 @@ public function configure(ArrayNodeDefinition $builder) */ public function load(ContainerBuilder $container, array $config) { - $definition = new Definition('IntegratedExperts\BehatRelativityExtension\Context\Initializer\RelativityContextInitializer', [ + $definition = new Definition('DrevOps\BehatRelativityExtension\Context\Initializer\RelativityContextInitializer', [ $config['components'], $config['offset'], $config['breakpoints'], $config['jquery_version'], ]); $definition->addTag(ContextExtension::INITIALIZER_TAG, ['priority' => 0]); - $container->setDefinition('integratedexperts_relativity.relativity_context_initializer', $definition); + $container->setDefinition('drevops_relativity.relativity_context_initializer', $definition); } }