Skip to content

Commit a45d7fd

Browse files
committed
MAGETWO-32081: MTF Alternative Web Driver pull request preparation
1 parent 5d4ee1a commit a45d7fd

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

dev/tests/functional/lib/Mtf/ObjectManagerFactory.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ protected function createDeploymentConfig(
7474
\Magento\Framework\App\Filesystem\DirectoryList $directoryList,
7575
array $arguments
7676
) {
77+
$data = isset($arguments[\Magento\Framework\App\Arguments\Loader::PARAM_CUSTOM_FILE])
78+
? $arguments[\Magento\Framework\App\Arguments\Loader::PARAM_CUSTOM_FILE]
79+
: null;
7780
return new \Magento\Framework\App\DeploymentConfig(
7881
new \Magento\Framework\App\DeploymentConfig\Reader($directoryList),
79-
isset($arguments[\Magento\Framework\App\Arguments\Loader::PARAM_CUSTOM_FILE])
80-
? $arguments[\Magento\Framework\App\Arguments\Loader::PARAM_CUSTOM_FILE]
81-
: null
82+
$data
8283
);
8384
}
8485

dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterPreview.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ class AssertNewsletterPreview extends AbstractConstraint
2929
* @param Template $newsletter
3030
* @return void
3131
*/
32-
public function processAssert(BrowserInterfaceInterface $browser, TemplatePreview $templatePreview, Template $newsletter)
33-
{
32+
public function processAssert(
33+
BrowserInterface $browser,
34+
TemplatePreview $templatePreview,
35+
Template $newsletter
36+
) {
3437
$browser->selectWindow();
3538
$content = $templatePreview->getContent()->getPageContent();
3639
$browser->closeWindow();

0 commit comments

Comments
 (0)