Code Duplication    Length = 12-12 lines in 2 locations

tests/acceptance/AnnotationCest.php 2 locations

@@ 37-48 (lines=12) @@
34
	}
35
36
	// tests
37
	public function ensure_that_block_annotation_works(\AcceptanceTester $I)
38
	{
39
		$I->wantTo('Ensure that blocks annotation works');
40
		$I = $this->logIn($I);
41
		$I->amOnPage('/srazvs/block/edit/2?page=block');
42
		$I->see('úprava bloku');
43
		$I->click('Náhled anotace', '#content');
44
		$I->seeInCurrentUrl('/srazvs/block/annotation/382ff1c792c7980aa0b1950259a518e8');
45
		foreach ($this->annotationBlock['fields'] as $field => $value) {
46
			$I->seeInField($field, $value);
47
		}
48
	}
49
50
	public function ensure_that_program_annotation_works(\AcceptanceTester $I)
51
	{
@@ 50-61 (lines=12) @@
47
		}
48
	}
49
50
	public function ensure_that_program_annotation_works(\AcceptanceTester $I)
51
	{
52
		$I->wantTo('Ensure that programs annotation works');
53
		$I = $this->logIn($I);
54
		$I->amOnPage('/srazvs/program/edit/1?page=program');
55
		$I->see('úprava programu');
56
		$I->click('Náhled anotace', '#content');
57
		$I->seeInCurrentUrl('/srazvs/program/annotation/524888c93f896f388d563f68682cf41c');
58
		foreach ($this->annotationProgram['fields'] as $field => $value) {
59
			$I->seeInField($field, $value);
60
		}
61
	}
62
63
	public function block_annotation_should_be_accessible_by_public(\AcceptanceTester $I)
64
	{