Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Testing] Documented the changes in MailerAssertionsTrait#13050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
30 changes: 23 additions & 7 deletionstesting/functional_tests_assertions.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -19,17 +19,17 @@ Now here is the example with the assertions specific to Symfony:: | ||
| $this->assertSelectorTextContains('html', 'Hello World'); | ||
| Assertions Reference | ||
| --------------------- | ||
| Response | ||
| ~~~~~~~~ | ||
| .. note:: | ||
| The following assertions only work if a request has been made with the | ||
| ``Client`` in a test case extending the ``WebTestCase`` class. | ||
javiereguiluz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| - ``assertResponseIsSuccessful()`` | ||
| - ``assertResponseStatusCodeSame()`` | ||
| - ``assertResponseRedirects()`` | ||
| @@ -44,12 +44,22 @@ Response | ||
| Request | ||
| ~~~~~~~ | ||
| .. note:: | ||
| The following assertions only work if a request has been made with the | ||
| ``Client`` in a test case extending the ``WebTestCase`` class. | ||
| - ``assertRequestAttributeValueSame()`` | ||
| - ``assertRouteSame()`` | ||
| Browser | ||
| ~~~~~~~ | ||
| .. note:: | ||
| The following assertions only work if a request has been made with the | ||
| ``Client`` in a test case extending the ``WebTestCase`` class. | ||
| - ``assertBrowserHasCookie()`` | ||
| - ``assertBrowserNotHasCookie()`` | ||
| - ``assertBrowserCookieValueSame()`` | ||
| @@ -59,8 +69,9 @@ Crawler | ||
| .. note:: | ||
| The following assertions only work if a request has been made with the | ||
| ``Client`` in a test case extending the ``WebTestCase`` class. In addition, | ||
| they are not available when using `symfony/panther`_ for end-to-end testing. | ||
| - ``assertSelectorExists()`` | ||
| - ``assertSelectorNotExists()`` | ||
| @@ -75,6 +86,11 @@ Crawler | ||
| Mailer | ||
| ~~~~~~ | ||
| .. versionadded:: 5.1 | ||
| Starting from Symfony 5.1, the following assertions no longer require to make | ||
| a request with the ``Client`` in a test case extending the ``WebTestCase`` class. | ||
| - ``assertEmailCount()`` | ||
| - ``assertQueuedEmailCount()`` | ||
| - ``assertEmailIsQueued()`` | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.