Passed
Push — develop ( 28c299...928e2a )
by Mathias
12:40
created

SettingsContext   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2017 Cross Solution <http://cross-solution.de>
8
 */
9
10
namespace Yawik\Behat;
11
12
13
use Behat\Behat\Context\Context;
14
15
class SettingsContext implements Context
16
{
17
	use CommonContextTrait;
18
	
19
	/**
20
	 * @Given I go to settings page
21
	 */
22
	public function iGoToSettingsPage()
23
	{
24
		//$this->visit('/settings');
25
        $url = $this->buildUrl('lang/settings');
26
        $this->visit($url);
27
	}
28
	
29
	/**
30
	 * @Given I go to email template settings page
31
	 */
32
	public function iGoToEmailTemplatePage()
33
	{
34
	    $url = $this->buildUrl('lang/settings',[
35
	        'module' => 'Applications'
36
        ]);
37
		$this->visit($url);
38
	}
39
}
40