Search for on
Title | Object type | File name | Summary |
---|---|---|---|
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::getUrl | function | core/ |
Get the current URL from the cURL handler. |
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]] |
AssertHelperTraitTest::testTraitDeprecation | function | core/ |
|
AssertLegacyTrait::assertNoOption | function | core/ |
Asserts that a select option does NOT exist in the current page. |
AssertLegacyTrait::assertOption | function | core/ |
Asserts that a select option in the current page exists. |
AssertLegacyTrait::assertOptionByText | function | core/ |
Asserts that a select option with the visible text exists. |
AssertLegacyTrait::assertOptionSelected | function | core/ |
Asserts that a select option in the current page is checked. |
AssertLegacyTrait::assertResponse | function | core/ |
Asserts the page responds with the specified response code. |
AssertLegacyTrait::assertSession | function | core/ |
Returns WebAssert object. |
AssertLegacyTrait::constructFieldXpath | function | core/ |
Helper: Constructs an XPath for the given set of attributes and value. |
AssertLegacyTrait::getAllOptions | function | core/ |
Get all option elements, including nested options, in a select. |
AssertLegacyTrait::getRawContent | function | core/ |
Gets the current raw content. |
AssertLegacyTraitDeprecatedTest::testGetAllOptions | function | core/ |
Tests getAllOptions(). |
AssertLegacyTraitTest::$session | property | core/ |
The mocked Mink session object used for testing. |
AssertLegacyTraitTest::assertSession | function | core/ |
Returns WebAssert object. |
AssertLegacyTraitTest::getSession | function | core/ |
Returns a mocked behat session object. |
AssertLegacyTraitTest::testAssertOptionSelected | function | core/ |
@covers ::assertOptionSelected[[api-linebreak]] |
AssertLegacyTraitTest::testAssertOptionSelectedFail | function | core/ |
@covers ::assertOptionSelected[[api-linebreak]] |
AssertLegacyTraitTest::testConstructFieldXpath | function | core/ |
@covers ::constructFieldXpath[[api-linebreak]] |
AssertPageCacheContextsAndTagsTrait | trait | core/ |
Provides test assertions for testing page-level cache contexts & tags. |
AssertPageCacheContextsAndTagsTrait.php | file | core/ |
|
AssertPageCacheContextsAndTagsTrait::assertCacheContext | function | core/ |
Asserts whether an expected cache context was present in the last response. |
AssertPageCacheContextsAndTagsTrait::assertCacheContexts | function | core/ |
Ensures that some cache contexts are present in the current response. |
Pagination
- Previous page
- Page 20
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.