◆ email_catcher_is_configured()
behat_email::email_catcher_is_configured |
( |
| ) |
|
Behat step to check if email catcher is configured.
@Given /^an email catcher server is configured$/
◆ empty_email_inbox()
behat_email::empty_email_inbox |
( |
| ) |
|
Custom Behat test to empty the email inbox.
@When I empty the email inbox
◆ 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.
◆ is_email_catcher_configured()
static behat_email::is_email_catcher_configured |
( |
| ) |
|
|
static |
Check if email catcher is configured.
- Return values
-
◆ reset_after_test()
behat_email::reset_after_test |
( |
| ) |
|
Clean up the email inbox after each scenario.
@AfterScenario @behat_email
◆ the_following_emails_have_been_sent()
behat_email::the_following_emails_have_been_sent |
( |
TableNode | $table | ) |
|
Behat step to send emails.
@Given the following emails have been sent:
- Parameters
-
TableNode | $table | The table of emails to send. |
◆ verify_email_content()
behat_email::verify_email_content |
( |
string | $user, |
|
|
string | $subject, |
|
|
string | $content ) |
Verifies the content of an email sent to a specific user and subject.
@Given the email to :user with subject containing :subject should contain :content
- Parameters
-
string | $user | The user to check for. |
string | $subject | The subject to check for. |
string | $content | The content to check for. |
◆ verify_email_count()
behat_email::verify_email_count |
( |
string | $address, |
|
|
int | $expected ) |
Custom Behat test to verify the number of emails for a user.
@Then user :address should have :count emails
- Parameters
-
string | $address | The user to check for. |
int | $expected | The number of emails to check for. |
◆ 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:
- lib/tests/behat/behat_email.php