Contains functions used by behat to test functionality.
More...
Contains functions used by behat to test functionality.
- Copyright
- 2013 Mark Nelson markn.nosp@m.@moo.nosp@m.dle.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Copyright
- 2013 Mark Nelson markn.nosp@m.@moo.nosp@m.dle.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_partial_named_selectors()
static behat_calendar::get_partial_named_selectors |
( |
| ) |
|
|
static |
Return the list of partial named selectors.
- Return values
-
◆ getSession()
behat_session_interface::getSession |
( |
| $name = null | ) |
|
|
inherited |
Returns the Mink session.
- Parameters
-
string | null | $name | name of the session OR active session will be used |
- Return values
-
Implemented in behat_form_field.
◆ i_am_viewing_calendar_in_view()
behat_calendar::i_am_viewing_calendar_in_view |
( |
string | $view | ) |
|
Navigate to a specific view in the calendar.
@Given /^I am viewing calendar in "([^"]+)" view$/
- Parameters
-
string | $view | The calendar view ('month', 'day' and 'upcoming') to navigate to. |
- Return values
-
◆ i_am_viewing_site_calendar()
behat_calendar::i_am_viewing_site_calendar |
( |
| ) |
|
Navigate to site calendar.
@Given /^I am viewing site calendar$/
- Exceptions
-
- Return values
-
◆ i_create_a_calendar_event()
behat_calendar::i_create_a_calendar_event |
( |
| $data | ) |
|
Create event.
@Given /^I create a calendar event:$/
- Parameters
-
◆ i_create_a_calendar_event_with_form_data()
behat_calendar::i_create_a_calendar_event_with_form_data |
( |
| $data | ) |
|
Create event when starting on the front page.
@Given /^I create a calendar event with form data:$/
- Parameters
-
◆ i_hover_over_day_of_this_month_in_full_calendar_page()
behat_calendar::i_hover_over_day_of_this_month_in_full_calendar_page |
( |
int | $day, |
|
|
string | $responsive = '' ) |
Hover over a specific day in the full calendar page.
@Given /^I hover over day "(?P<dayofmonth>::d+)" of this month in the full calendar page(?P<responsive> responsive view|)$/
- Parameters
-
int | $day | The day of the current month |
string | $responsive | If not empty, use the repsonsive view. |
◆ i_hover_over_day_of_this_month_in_mini_calendar_block()
behat_calendar::i_hover_over_day_of_this_month_in_mini_calendar_block |
( |
int | $day, |
|
|
string | $responsive = '' ) |
Hover over a specific day in the mini-calendar.
@Given /^I hover over day "(?P<dayofmonth>::d+)" of this month in the mini-calendar block(?P<responsive> responsive view|)$/
- Parameters
-
int | $day | The day of the current month |
string | $responsive | If not null, find the responsive version of the link. |
◆ i_hover_over_today_in_mini_calendar_block()
behat_calendar::i_hover_over_today_in_mini_calendar_block |
( |
string | $responsive = '' | ) |
|
Hover over today in the mini-calendar.
@Given /^I hover over today in the mini-calendar block( responsive view|)$/
- Parameters
-
string | $responsive | If not empty, use the responsive calendar link. |
◆ i_view_the_calendar_day_view()
behat_calendar::i_view_the_calendar_day_view |
( |
int | $day, |
|
|
int | $month, |
|
|
int | $year ) |
Navigate to a specific date in the calendar.
@Given /^I view the calendar for "(?P<day>::d+)" "(?P<month>\d+)" "(?P<year>\d+)"$/
- Parameters
-
int | $day | the day selected as a number |
int | $month | the month selected as a number |
int | $year | the four digit year |
◆ i_view_the_calendar_for()
behat_calendar::i_view_the_calendar_for |
( |
| $month, |
|
|
| $year ) |
Navigate to a specific month in the calendar.
@Given /^I view the calendar for "(?P<month>::d+)" "(?P<year>\d+)"$/
- Parameters
-
int | $month | the month selected as a number |
int | $year | the four digit year |
◆ PAGE_READY_JS
const behat_session_interface::PAGE_READY_JS |
|
inherited |
Initial value:= "document.readyState === 'complete' && " .
"(typeof M !== 'object' || typeof M.util !== 'object' || " .
"typeof M.util.pending_js === 'undefined' || M.util.pending_js.length === 0)"
The JS code to check that the page is ready.
The document must be complete and either M.util.pending_js must be empty, or it must not be defined at all.
The documentation for this class was generated from the following file:
- calendar/tests/behat/behat_calendar.php