GetMailerEvent(int $index = 0, string $transport = null) toĪssertEmailAttachmentCount(RawMessage $email, int $count, string $message = '')Īsserts that the given email has the expected number of attachments. using theĪssertEmailIsQueued(MessageEvent $event, string $message = '')/ assertEmailIsNotQueued(MessageEvent $event, string $message = '')Īsserts that the given mailer event is (not) queued. Mailer Assertions assertEmailCount(int $count, string $transport = null, string $message = '')Īsserts that the expected number of emails was sent.ĪssertQueuedEmailCount(int $count, string $transport = null, string $message = '')Īsserts that the expected number of emails was queued (e.g. Selector does (not) equal the expected value. Selector does (not) equal the expected text.ĪssertPageTitleSame(string $expectedTitle, string $message = '')Īsserts that the element is equal to the given title.ĪssertPageTitleContains(string $expectedTitle, string $message = '')Īsserts that the element contains the given title.ĪssertInputValueSame(string $fieldName, string $expectedValue, string $message = '')/ assertInputValueNotSame(string $fieldName, string $expectedValue, string $message = '')Īsserts that value of the form input with the given name does (not)ĪssertCheckboxChecked(string $fieldName, string $message = '')/ assertCheckboxNotChecked(string $fieldName, string $message = '')Īsserts that the checkbox with the given name is (not) checked.ĪssertFormValue(string $formSelector, string $fieldName, string $value, string $message = '')/ assertNoFormValue(string $formSelector, string $fieldName, string $message = '')Īsserts that value of the field of the first form matching the given Response Assertions assertResponseIsSuccessful(string $message = '')Īsserts that the response was successful (HTTP status is 2xx).ĪssertResponseStatusCodeSame(int $expectedCode, string $message = '')ĪssertResponseRedirects(string $expectedLocation = null, int $expectedCode = null, string $message = '')Īsserts the response is a redirect response (optionally, you can checkĪssertResponseHasHeader(string $headerName, string $message = '')/ assertResponseNotHasHeader(string $headerName, string $message = '')Īsserts the given header is (not) available on the response.ĪssertResponseHeaderSame(string $headerName, string $expectedValue, string $message = '')/ assertResponseHeaderNotSame(string $headerName, string $expectedValue, string $message = '')Īsserts the given header does (not) contain the expected value on theĪssertResponseHasCookie(string $name, string $path = '/', string $domain = null, string $message = '')/ assertResponseNotHasCookie(string $name, string $path = '/', string $domain = null, string $message = '')Īsserts the given cookie is present in the response (optionallyĬhecking for a specific cookie path or domain).ĪssertResponseCookieValueSame(string $name, string $expectedValue, string $path = '/', string $domain = null, string $message = '')Īsserts the given cookie is present and set to the expected value.ĪssertResponseFormatSame(?string $expectedFormat, string $message = '')Īsserts the response format returned by theĪssertResponseIsUnprocessable(string $message = '')Īsserts the response is unprocessable (HTTP status is 422)Ĭrawler Assertions assertSelectorExists(string $selector, string $message = '')/ assertSelectorNotExists(string $selector, string $message = '')Īsserts that the given selector does (not) match at least one elementĪssertSelectorTextContains(string $selector, string $text, string $message = '')/ assertSelectorTextNotContains(string $selector, string $text, string $message = '')Īsserts that the first element matching the given selector does (not)ĪssertSelectorTextSame(string $selector, string $text, string $message = '')Īsserts that the contents of the first element matching the given
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |