Skip to content

Commit faa5397

Browse files
committed
Merge branch 'develop' into MQE-683
2 parents 21e7f2d + c37ba96 commit faa5397

File tree

239 files changed

+3686
-1888
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+3686
-1888
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
language: php
22
php:
3-
- 7.0
4-
- 7.1
53
- 7.2
64
- 7.3
75
install: composer install --no-interaction --prefer-source

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
"sort-packages": true
1010
},
1111
"require": {
12-
"php": "7.0.2||7.0.4||~7.0.6||~7.1.0||~7.2.0||~7.3.0",
12+
"php": "~7.2.0||~7.3.0",
1313
"ext-curl": "*",
1414
"ext-json": "*",
1515
"ext-openssl": "*",
16+
"ext-dom": "*",
1617
"allure-framework/allure-codeception": "~1.3.0",
1718
"aws/aws-sdk-php": "^3.132",
1819
"codeception/codeception": "~2.4.5",

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/_bootstrap.php

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
true,
3636
\Magento\FunctionalTestingFramework\Config\MftfApplicationConfig::UNIT_TEST_PHASE,
3737
true,
38-
\Magento\FunctionalTestingFramework\Config\MftfApplicationConfig::LEVEL_NONE,
38+
\Magento\FunctionalTestingFramework\Config\MftfApplicationConfig::LEVEL_DEFAULT,
3939
false
4040
);
4141

@@ -102,28 +102,6 @@
102102
require($unitUtilFile);
103103
}
104104

105-
106-
// Mocks suite files location getter return to get files in verification/_suite Directory
107-
// This mocks the paths of the suite files but still parses the xml files
108-
$suiteDirectory = TESTS_BP . DIRECTORY_SEPARATOR . "verification" . DIRECTORY_SEPARATOR . "_suite";
109-
110-
$paths = [
111-
$suiteDirectory . DIRECTORY_SEPARATOR . 'functionalSuite.xml',
112-
$suiteDirectory . DIRECTORY_SEPARATOR . 'functionalSuiteHooks.xml',
113-
$suiteDirectory . DIRECTORY_SEPARATOR . 'functionalSuiteExtends.xml'
114-
];
115-
116-
// create and return the iterator for these file paths
117-
$iterator = new Magento\FunctionalTestingFramework\Util\Iterator\File($paths);
118-
try {
119-
AspectMock\Test::double(
120-
Magento\FunctionalTestingFramework\Config\FileResolver\Root::class,
121-
['get' => $iterator]
122-
)->make();
123-
} catch (Exception $e) {
124-
echo "Suite directory not mocked.";
125-
}
126-
127105
function sortInterfaces($files)
128106
{
129107
$bottom = [];

dev/tests/functional/standalone_bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
$env->setEnvironmentVariable('DEFAULT_TIMEZONE', DEFAULT_TIMEZONE);
5252

5353
defined('WAIT_TIMEOUT') || define('WAIT_TIMEOUT', 30);
54-
$env->setEnvironmentVariable('WAIT_TIMEOUT', 30);
54+
$env->setEnvironmentVariable('WAIT_TIMEOUT', WAIT_TIMEOUT);
5555

5656
try {
5757
new DateTimeZone(DEFAULT_TIMEZONE);

dev/tests/unit/Magento/FunctionalTestFramework/Test/Objects/ActionObjectTest.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ public function testResolveUrl()
233233
*/
234234
public function testResolveUrlWithNoAttribute()
235235
{
236+
$this->expectException(TestReferenceException::class);
237+
236238
// Set up mocks
237239
$actionObject = new ActionObject('merge123', 'amOnPage', [
238240
'url' => '{{PageObject}}'
@@ -247,19 +249,6 @@ public function testResolveUrlWithNoAttribute()
247249

248250
// Call the method under test
249251
$actionObject->resolveReferences();
250-
251-
// Expect this warning to get generated
252-
TestLoggingUtil::getInstance()->validateMockLogStatement(
253-
"warning",
254-
"page url attribute not found and is required",
255-
['action' => $actionObject->getType(), 'url' => '{{PageObject}}', 'stepKey' => $actionObject->getStepKey()]
256-
);
257-
258-
// Verify
259-
$expected = [
260-
'url' => '{{PageObject}}'
261-
];
262-
$this->assertEquals($expected, $actionObject->getCustomActionAttributes());
263252
}
264253

265254
/**

dev/tests/verification/Resources/ActionGroupContainsStepKeyInArgText.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
1313
use Yandex\Allure\Adapter\Annotation\TestCaseId;
1414

1515
/**
16-
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
16+
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest/ActionGroupContainsStepKeyInArgText.xml<br>")
1717
*/
1818
class ActionGroupContainsStepKeyInArgTextCest
1919
{

dev/tests/verification/Resources/ActionGroupMergedViaInsertAfter.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
1313
use Yandex\Allure\Adapter\Annotation\TestCaseId;
1414

1515
/**
16-
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
16+
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest/ActionGroupMergedViaInsertAfter.xml<br>")
1717
*/
1818
class ActionGroupMergedViaInsertAfterCest
1919
{

dev/tests/verification/Resources/ActionGroupMergedViaInsertBefore.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
1313
use Yandex\Allure\Adapter\Annotation\TestCaseId;
1414

1515
/**
16-
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest.xml<br>")
16+
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupFunctionalTest/ActionGroupMergedViaInsertBefore.xml<br>")
1717
*/
1818
class ActionGroupMergedViaInsertBeforeCest
1919
{

dev/tests/verification/Resources/ActionGroupSkipReadiness.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use Yandex\Allure\Adapter\Model\SeverityLevel;
1313
use Yandex\Allure\Adapter\Annotation\TestCaseId;
1414

1515
/**
16-
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest.xml<br>")
16+
* @Description("<h3>Test files</h3>verification/TestModule/Test/ActionGroupTest/ActionGroupSkipReadiness.xml<br>")
1717
*/
1818
class ActionGroupSkipReadinessCest
1919
{

0 commit comments

Comments
 (0)