Code Duplication    Length = 8-9 lines in 4 locations

tests/acceptance/MeetingCest.php 2 locations

@@ 57-64 (lines=8) @@
54
		$I->see('Správa srazů');
55
	}
56
57
	public function ensure_that_meeting_listing_works(\AcceptanceTester $I)
58
	{
59
		$I->wantTo('ensure that meeting listing works');
60
		$I->amOnPage('/srazvs/meeting/');
61
		$I->see('Správa srazů');
62
		$I->seeInCurrentUrl('/srazvs/meeting/');
63
		$I->see('Seznam srazů');
64
	}
65
66
	public function ensure_that_meeting_creating_works(\AcceptanceTester $I)
67
	{
@@ 66-74 (lines=9) @@
63
		$I->see('Seznam srazů');
64
	}
65
66
	public function ensure_that_meeting_creating_works(\AcceptanceTester $I)
67
	{
68
		$I->wantTo('ensure that meeting creating works');
69
		$I->amOnPage('/srazvs/meeting/');
70
		$I->see('Seznam srazů');
71
		$I->click('NOVÝ SRAZ', '#content');
72
		$I->seeInCurrentUrl('/srazvs/meeting/new/?page=meetings');
73
		$I->see('nový sraz');
74
	}
75
76
	public function it_should_create_simple_meeting(\AcceptanceTester $I)
77
	{

tests/acceptance/RegistrationCest.php 2 locations

@@ 61-68 (lines=8) @@
58
		$I->see('Třebíč - jaro 2010');
59
	}
60
61
	public function ensure_that_registrace_works(\AcceptanceTester $I)
62
	{
63
		$I->wantTo('ensure that registrace works');
64
		$I->amOnPage('srazvs/registrace/');
65
		$I->see('Registrace na srazy VS');
66
		$I->see('Třebíč - jaro 2010');
67
		$I->seeInCurrentUrl('/srazvs/registration/');
68
	}
69
70
	public function it_should_fail_registrate_new_visitor(AcceptanceTester $I)
71
	{
@@ 70-78 (lines=9) @@
67
		$I->seeInCurrentUrl('/srazvs/registration/');
68
	}
69
70
	public function it_should_fail_registrate_new_visitor(AcceptanceTester $I)
71
	{
72
		$I->amOnPage('/srazvs/registration/');
73
		$I->see('Registrace na srazy VS');
74
		$I->wantTo('Fail registration of new visitor');
75
		$I->click('Uložit', 'form');
76
		$I->seeInCurrentUrl('/srazvs/registration/');
77
		$I->see('Hodnota musí být vyplněna!');
78
	}
79
80
	public function it_should_registrate_new_visitor(AcceptanceTester $I)
81
	{