Search for assert
- Search 7.x for assert
- Search 9.5.x for assert
- Search 8.9.x for assert
- Search 11.x for assert
- Other projects
| Title | Object type | File name | Summary |
|---|---|---|---|
| AssertContentTrait::assertNoFieldByXPath | function | core/ |
Asserts that a field does not exist or its value does not match, by XPath. |
| AssertContentTrait::assertNoFieldChecked | function | core/ |
Asserts that a checkbox field in the current page is not checked. |
| AssertContentTrait::assertNoLink | function | core/ |
Passes if a link with the specified label is not found. |
| AssertContentTrait::assertNoLinkByHref | function | core/ |
Passes if a link containing a given href (part) is not found. |
| AssertContentTrait::assertNoLinkByHrefInMainRegion | function | core/ |
Passes if a link containing a given href is not found in the main region. |
| AssertContentTrait::assertNoOption | function | core/ |
Asserts that a select option in the current page does not exist. |
| AssertContentTrait::assertNoOptionSelected | function | core/ |
Asserts that a select option in the current page is not checked. |
| AssertContentTrait::assertNoPattern | function | core/ |
Triggers a pass if the perl regex pattern is not found in raw content. |
| AssertContentTrait::assertNoRaw | function | core/ |
Passes if the raw text is NOT found on the loaded page, fail otherwise. |
| AssertContentTrait::assertNoText | function | core/ |
Passes if the page (with HTML stripped) does not contains the text. |
| AssertContentTrait::assertNoTitle | function | core/ |
Pass if the page title is not the given string. |
| AssertContentTrait::assertNoUniqueText | function | core/ |
Passes if the text is found MORE THAN ONCE on the text version of the page. |
| AssertContentTrait::assertOption | function | core/ |
Asserts that a select option in the current page exists. |
| AssertContentTrait::assertOptionByText | function | core/ |
Asserts that a select option with the visible text exists. |
| AssertContentTrait::assertOptionSelected | function | core/ |
Asserts that a select option in the current page is checked. |
| AssertContentTrait::assertOptionSelectedWithDrupalSelector | function | core/ |
Asserts that a select option in the current page is checked. |
| AssertContentTrait::assertOptionWithDrupalSelector | function | core/ |
Asserts that a select option in the current page exists. |
| AssertContentTrait::assertPattern | function | core/ |
Triggers a pass if the Perl regex pattern is found in the raw content. |
| AssertContentTrait::assertRaw | function | core/ |
Passes if the raw text IS found on the loaded page, fail otherwise. |
| AssertContentTrait::assertText | function | core/ |
Passes if the page (with HTML stripped) contains the text. |
| AssertContentTrait::assertTextHelper | function | core/ |
Helper for assertText and assertNoText. |
| AssertContentTrait::assertTextPattern | function | core/ |
Asserts that a Perl regex pattern is found in the plain-text content. |
| AssertContentTrait::assertThemeOutput | function | core/ |
Asserts themed output. |
| AssertContentTrait::assertTitle | function | core/ |
Pass if the page title is the given string. |
| AssertContentTrait::assertUniqueText | function | core/ |
Passes if the text is found ONLY ONCE on the text version of the page. |
| AssertContentTrait::assertUniqueTextHelper | function | core/ |
Helper for assertUniqueText and assertNoUniqueText. |
| AssertContentTrait::buildXPathQuery | function | core/ |
Builds an XPath query. |
| AssertContentTrait::constructFieldXpath | function | core/ |
Helper: Constructs an XPath for the given set of attributes and value. |
| AssertContentTrait::cssSelect | function | core/ |
Searches elements using a CSS selector in the raw content. |
| AssertContentTrait::getAllOptions | function | core/ |
Get all option elements, including nested options, in a select. |
| AssertContentTrait::getDrupalSettings | function | core/ |
Gets the value of drupalSettings for the currently-loaded page. |
| AssertContentTrait::getRawContent | function | core/ |
Gets the current raw content. |
| AssertContentTrait::getSelectedItem | function | core/ |
Get the selected value from a select field. |
| AssertContentTrait::getTextContent | function | core/ |
Retrieves the plain-text content from the current raw content. |
| AssertContentTrait::parse | function | core/ |
Parse content returned from curlExec using DOM and SimpleXML. |
| AssertContentTrait::removeWhiteSpace | function | core/ |
Removes all white-space between HTML tags from the raw content. |
| AssertContentTrait::setDrupalSettings | function | core/ |
Sets the value of drupalSettings for the currently-loaded page. |
| AssertContentTrait::setRawContent | function | core/ |
Sets the raw content (e.g. HTML). |
| AssertContentTrait::xpath | function | core/ |
Performs an xpath search on the contents of the internal browser. |
| AssertContentTraitTest | class | core/ |
@coversDefaultClass \Drupal\KernelTests\AssertContentTrait[[api-linebreak]] @group Test |
| AssertContentTraitTest.php | file | core/ |
|
| AssertContentTraitTest::testGetTextContent | function | core/ |
@covers ::getTextContent[[api-linebreak]] |
| AssertMailTrait | trait | core/ |
Provides methods for testing emails sent during test runs. |
| AssertMailTrait.php | file | core/ |
|
| AssertMailTrait::assertMail | function | core/ |
Asserts that the most recently sent email message has the given value. |
| AssertMailTrait::assertMailPattern | function | core/ |
Asserts that the most recently sent email message has the pattern in it. |
| AssertMailTrait::assertMailString | function | core/ |
Asserts that the most recently sent email message has the string in it. |
| AssertMailTrait::getMails | function | core/ |
Gets an array containing all emails sent during this test case. |
| AssertMailTraitTest | class | core/ |
Tests \Drupal\Core\Test\AssertMailTrait works. |
| AssertMailTraitTest.php | file | core/ |
Pagination
- Previous page
- Page 2
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.