Skip to content

Commit fd92ef1

Browse files
committed
MQE-279: Create repositories in magento organization
- fix static tests
1 parent b1a4665 commit fd92ef1

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Magento Acceptance Test Framework
1+
# Magento2 Functional Testing Framework
22

33
Customized codeception modules, helpers, page objects and step objects for Magento 2.2.x. This library package can be used as dependency for Magento Acceptance Test projects for Magento 2 Community Edition ([magento/acceptance-test-ce](https://github.com/magento-pangolin/acceptance-test-ce/)) or Magento 2 Enterprise Edition in ([magento/acceptance-test-ee](https://github.com/magento-pangolin/acceptance-test-ee/)) or acceptance test projects for Magento 2 extensions.
44

src/Magento/FunctionalTestingFramework/Helper/Acceptance.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66

77
namespace Magento\FunctionalTestingFramework\Helper;
88

9+
use Magento\FunctionalTestingFramework\Module\MagentoWebDriver;
10+
use Codeception\Module;
11+
912
/**
1013
* Class Acceptance
1114
*
1215
* Define global actions
1316
* All public methods declared in helper class will be available in $I
1417
*/
15-
class Acceptance extends \Codeception\Module
18+
class Acceptance extends Module
1619
{
1720
/**
1821
* Reconfig WebDriver.
@@ -23,8 +26,7 @@ class Acceptance extends \Codeception\Module
2326
*/
2427
public function changeConfiguration($config, $value)
2528
{
26-
$this->getModule(\Magento\FunctionalTestingFramework\Module\MagentoWebDriver::class)
27-
->_reconfigure([$config => $value]);
29+
$this->getModule(MagentoWebDriver::class)->_reconfigure([$config => $value]);
2830
}
2931

3032
/**
@@ -35,6 +37,6 @@ public function changeConfiguration($config, $value)
3537
*/
3638
public function getConfiguration($config)
3739
{
38-
return $this->getModule(\Magento\FunctionalTestingFramework\Module\MagentoWebDriver::class)->_getConfig($config);
40+
return $this->getModule(MagentoWebDriver::class)->_getConfig($config);
3941
}
4042
}

src/Magento/FunctionalTestingFramework/ObjectManager/Config/Config.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
use Magento\FunctionalTestingFramework\ObjectManager\DefinitionInterface;
99
use Magento\FunctionalTestingFramework\ObjectManager\RelationsInterface;
10+
use Magento\FunctionalTestingFramework\ObjectManager\Definition\Runtime as DefinitionRuntime;
11+
use Magento\FunctionalTestingFramework\ObjectManager\Relations\Runtime as RelationsRuntime;
1012

1113
/**
1214
* Class Config
@@ -76,8 +78,8 @@ class Config implements \Magento\FunctionalTestingFramework\ObjectManager\Config
7678
*/
7779
public function __construct(RelationsInterface $relations = null, DefinitionInterface $definitions = null)
7880
{
79-
$this->relations = $relations ? : new \Magento\FunctionalTestingFramework\ObjectManager\Relations\Runtime();
80-
$this->definitions = $definitions ? : new \Magento\FunctionalTestingFramework\ObjectManager\Definition\Runtime();
81+
$this->relations = $relations ? : new RelationsRuntime();
82+
$this->definitions = $definitions ? : new DefinitionRuntime();
8183
}
8284

8385
/**

0 commit comments

Comments
 (0)