-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy pathAcceptance.php
42 lines (38 loc) · 942 Bytes
/
Acceptance.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\FunctionalTestingFramework\Helper;
use Magento\FunctionalTestingFramework\Module\MagentoWebDriver;
use Codeception\Module;
/**
* Class Acceptance
*
* Define global actions
* All public methods declared in helper class will be available in $I
*/
class Acceptance extends Module
{
/**
* Reconfig WebDriver.
*
* @param string $config
* @param string $value
* @return void
*/
public function changeConfiguration($config, $value)
{
$this->getModule(MagentoWebDriver::class)->_reconfigure([$config => $value]);
}
/**
* Get WebDriver configuration.
*
* @param string $config
* @return string
*/
public function getConfiguration($config)
{
return $this->getModule(MagentoWebDriver::class)->_getConfig($config);
}
}