Code Duplication    Length = 11-11 lines in 7 locations

tests/acceptance/BlockCest.php 2 locations

@@ 84-94 (lines=11) @@
81
		$I->see('Kategorie:');
82
	}
83
84
	public function it_should_create_simple_block(\AcceptanceTester $I)
85
	{
86
		$I->amOnPage('/srazvs/block/');
87
		$I->see('Správa bloků');
88
		$I->wantTo('Create new block with basic data');
89
		$I->click('NOVÝ BLOK', '#content');
90
		$I->seeCurrentUrlMatches('~/srazvs/block/new~');
91
		$this->fillForm($I, $this->simpleBlock);
92
		$I->click('Uložit', '#content');
93
		$I->seeInCurrentUrl('/srazvs/block');
94
	}
95
96
	public function it_should_update_simple_block(\AcceptanceTester $I)
97
	{
@@ 100-110 (lines=11) @@
97
	{
98
	}
99
100
	public function it_should_create_full_block(\AcceptanceTester $I)
101
	{
102
		$I->amOnPage('/srazvs/block/');
103
		$I->see('Správa bloků');
104
		$I->wantTo('Create new block with all data');
105
		$I->click('NOVÝ BLOK', '#content');
106
		$I->seeCurrentUrlMatches('~/srazvs/block/new~');
107
		$this->fillForm($I, $this->fullBlock);
108
		$I->click('Uložit', '#content');
109
		$I->seeInCurrentUrl('/srazvs/block?error=ok');
110
	}
111
112
	public function it_should_update_full_block(\AcceptanceTester $I)
113
	{

tests/acceptance/ExportCest.php 1 location

@@ 136-146 (lines=11) @@
133
		$I->see('DEBUG_MODE');
134
	}
135
136
	public function it_should_export_name_badges(AcceptanceTester $I)
137
	{
138
		$I->wantTo('Export name badges');
139
		$I = $this->logIn($I);
140
		$I->amOnPage('/srazvs/export/?mid=1');
141
		$I->seeInCurrentUrl('/srazvs/export/');
142
		$I->click('jmenovky');
143
		$I->seeInCurrentUrl('/srazvs/export/name-badges');
144
		$I->see('roboTester');
145
		$I->see('DEBUG_MODE');
146
	}
147
148
	public function it_should_export_attendance_list(AcceptanceTester $I)
149
	{

tests/acceptance/MeetingCest.php 2 locations

@@ 76-86 (lines=11) @@
73
		$I->see('nový sraz');
74
	}
75
76
	public function it_should_create_simple_meeting(\AcceptanceTester $I)
77
	{
78
		$I->amOnPage('/srazvs/meeting/');
79
		$I->see('Správa srazů');
80
		$I->wantTo('Create new meeting with basic data');
81
		$I->click('NOVÝ SRAZ', '#content');
82
		$I->seeInCurrentUrl('/srazvs/meeting/new/?page=meetings');
83
		$this->fillForm($I, $this->simpleMeeting);
84
		$I->click('Uložit', '#content');
85
		$I->seeInCurrentUrl('/srazvs/meeting');
86
	}
87
88
	public function it_should_create_full_meeting(\AcceptanceTester $I)
89
	{
@@ 88-98 (lines=11) @@
85
		$I->seeInCurrentUrl('/srazvs/meeting');
86
	}
87
88
	public function it_should_create_full_meeting(\AcceptanceTester $I)
89
	{
90
		$I->amOnPage('/srazvs/meeting/');
91
		$I->see('Správa srazů');
92
		$I->wantTo('Create new meeting with all data');
93
		$I->click('NOVÝ SRAZ', '#content');
94
		$I->seeInCurrentUrl('/srazvs/meeting/new/?page=meetings');
95
		$this->fillForm($I, $this->fullMeeting);
96
		$I->click('Uložit', '#content');
97
		$I->seeInCurrentUrl('/srazvs/meeting');
98
	}
99
100
}
101

tests/acceptance/VisitorCest.php 2 locations

@@ 24-34 (lines=11) @@
21
	}
22
23
	// tests
24
	public function i_should_check_visitor(AcceptanceTester $I)
25
	{
26
		$I->wantTo('Check visitor');
27
		$I->amOnPage('/srazvs/visitor/?mid=1');
28
		$I->seeInCurrentUrl('/srazvs/visitor/');
29
		$I->click('#visitor-10 .checker');
30
		//$I->seeInCurrentUrl('/srazvs/visitor/check/10');
31
		$I->see('Položka byla úspěšně zkontrolována', '.flash');
32
		$I->seeInCurrentUrl('/srazvs/visitor');
33
		$I->seeElement('.checked');
34
	}
35
36
	public function i_should_uncheck_visitor(AcceptanceTester $I)
37
	{
@@ 36-46 (lines=11) @@
33
		$I->seeElement('.checked');
34
	}
35
36
	public function i_should_uncheck_visitor(AcceptanceTester $I)
37
	{
38
		$I->wantTo('Uncheck visitor');
39
		$I->amOnPage('/srazvs/visitor/?mid=1');
40
		$I->seeInCurrentUrl('/srazvs/visitor/');
41
		$I->click('#visitor-10 .checker');
42
		//$I->seeInCurrentUrl('/srazvs/visitor/uncheck/10');
43
		$I->see('Položka byla nastavena jako nekontrolována', '.flash');
44
		$I->seeInCurrentUrl('/srazvs/visitor');
45
		$I->canSeeElement('.checked');
46
	}
47
48
}
49