literat /
srazvs
This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | class MeetingCest extends CestCase |
||
| 4 | { |
||
| 5 | |||
| 6 | private $simpleMeeting = [ |
||
| 7 | 'fields' => [ |
||
| 8 | 'place' => 'Testovací - simple', |
||
| 9 | 'start_date' => '2016-10-13', |
||
| 10 | 'end_date' => '2016-10-14', |
||
| 11 | 'open_reg' => '2016-10-13 00:00:00', |
||
| 12 | 'close_reg' => '2016-10-14 00:00:00', |
||
| 13 | ], |
||
| 14 | ]; |
||
| 15 | |||
| 16 | private $fullMeeting = [ |
||
| 17 | 'fields' => [ |
||
| 18 | 'place' => 'Testovací - full', |
||
| 19 | 'start_date' => '2016-10-13', |
||
| 20 | 'end_date' => '2016-10-14', |
||
| 21 | 'open_reg' => '2016-10-13 00:00:00', |
||
| 22 | 'close_reg' => '2016-10-14 00:00:00', |
||
| 23 | 'cost' => 500, |
||
| 24 | 'advance' => 300, |
||
| 25 | 'numbering' => 'x2016', |
||
| 26 | 'contact' => 'Tester', |
||
| 27 | 'email' => '[email protected]', |
||
| 28 | 'gsm' => '123456789', |
||
| 29 | ], |
||
| 30 | ]; |
||
| 31 | |||
| 32 | public function _before(AcceptanceTester $I) |
||
|
0 ignored issues
–
show
|
|||
| 33 | { |
||
| 34 | $I->wantTo('login to admin'); |
||
| 35 | $I->amOnPage('admin/'); |
||
| 36 | $I->seeInCurrentUrl('admin/'); |
||
| 37 | $I->fillField('username','tester'); |
||
| 38 | $I->fillField('password','tester'); |
||
| 39 | $I->checkOption('persistent'); |
||
| 40 | $I->click('Přihlásit', '#content'); |
||
| 41 | $I->see('Úvod'); |
||
| 42 | $I->see('tester'); |
||
| 43 | } |
||
| 44 | |||
| 45 | public function _after(AcceptanceTester $I) |
||
|
0 ignored issues
–
show
The parameter $I is not named in camelCase.
This check marks parameter names that have not been written in camelCase. In camelCase names are written without any punctuation, the start of each new word being marked
by a capital letter. Thus the name database connection string becomes Loading history...
|
|||
| 46 | { |
||
| 47 | } |
||
| 48 | |||
| 49 | // tests |
||
| 50 | public function ensure_that_meeting_works(\AcceptanceTester $I) |
||
|
0 ignored issues
–
show
The parameter $I is not named in camelCase.
This check marks parameter names that have not been written in camelCase. In camelCase names are written without any punctuation, the start of each new word being marked
by a capital letter. Thus the name database connection string becomes Loading history...
|
|||
| 51 | { |
||
| 52 | $I->wantTo('ensure that meeting works'); |
||
| 53 | $I->amOnPage('/srazvs/meeting/'); |
||
| 54 | $I->see('Správa srazů'); |
||
| 55 | } |
||
| 56 | |||
| 57 | View Code Duplication | public function ensure_that_meeting_listing_works(\AcceptanceTester $I) |
|
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. Loading history...
The parameter $I is not named in camelCase.
This check marks parameter names that have not been written in camelCase. In camelCase names are written without any punctuation, the start of each new word being marked
by a capital letter. Thus the name database connection string becomes Loading history...
|
|||
| 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 | View Code Duplication | public function ensure_that_meeting_creating_works(\AcceptanceTester $I) |
|
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. Loading history...
The parameter $I is not named in camelCase.
This check marks parameter names that have not been written in camelCase. In camelCase names are written without any punctuation, the start of each new word being marked
by a capital letter. Thus the name database connection string becomes Loading history...
|
|||
| 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 | View Code Duplication | public function it_should_create_simple_meeting(\AcceptanceTester $I) |
|
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. Loading history...
The parameter $I is not named in camelCase.
This check marks parameter names that have not been written in camelCase. In camelCase names are written without any punctuation, the start of each new word being marked
by a capital letter. Thus the name database connection string becomes Loading history...
|
|||
| 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 | View Code Duplication | public function it_should_create_full_meeting(\AcceptanceTester $I) |
|
|
0 ignored issues
–
show
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. Loading history...
The parameter $I is not named in camelCase.
This check marks parameter names that have not been written in camelCase. In camelCase names are written without any punctuation, the start of each new word being marked
by a capital letter. Thus the name database connection string becomes Loading history...
|
|||
| 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 |
This check marks parameter names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString.