Search for assert

  1. Search 7.x for assert
  2. Search 9.5.x for assert
  3. Search 10.3.x for assert
  4. Search 11.x for assert
  5. Other projects
Title Object type File name Summary
AssertContentTrait::assertEscaped function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if the raw text IS found escaped on the loaded page, fail otherwise.
AssertContentTrait::assertField function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists with the given name or ID.
AssertContentTrait::assertFieldById function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists with the given ID and value.
AssertContentTrait::assertFieldByName function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists with the given name and value.
AssertContentTrait::assertFieldByXPath function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists in the current page by the given XPath.
AssertContentTrait::assertFieldChecked function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a checkbox field in the current page is checked.
AssertContentTrait::assertFieldsByValue function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists in the current page with a given Xpath result.
AssertContentTrait::assertLink function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if a link with the specified label is found.
AssertContentTrait::assertLinkByHref function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if a link containing a given href (part) is found.
AssertContentTrait::assertNoDuplicateIds function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that each HTML ID is used for just a single element.
AssertContentTrait::assertNoEscaped function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if the raw text IS NOT found escaped on the loaded page, fail
otherwise.
AssertContentTrait::assertNoField function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field does not exist with the given name or ID.
AssertContentTrait::assertNoFieldById function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field does not exist with the given ID and value.
AssertContentTrait::assertNoFieldByName function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field does not exist with the given name and value.
AssertContentTrait::assertNoFieldByXPath function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field does not exist or its value does not match, by XPath.
AssertContentTrait::assertNoFieldChecked function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a checkbox field in the current page is not checked.
AssertContentTrait::assertNoLink function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if a link with the specified label is not found.
AssertContentTrait::assertNoLinkByHref function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if a link containing a given href (part) is not found.
AssertContentTrait::assertNoLinkByHrefInMainRegion function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if a link containing a given href is not found in the main region.
AssertContentTrait::assertNoOption function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a select option in the current page does not exist.
AssertContentTrait::assertNoOptionSelected function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a select option in the current page is not checked.
AssertContentTrait::assertNoPattern function core/tests/Drupal/KernelTests/AssertContentTrait.php Triggers a pass if the perl regex pattern is not found in raw content.
AssertContentTrait::assertNoRaw function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if the raw text is NOT found on the loaded page, fail otherwise.
AssertContentTrait::assertNoText function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if the page (with HTML stripped) does not contains the text.
AssertContentTrait::assertNoTitle function core/tests/Drupal/KernelTests/AssertContentTrait.php Pass if the page title is not the given string.
AssertContentTrait::assertNoUniqueText function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if the text is found MORE THAN ONCE on the text version of the page.
AssertContentTrait::assertOption function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a select option in the current page exists.
AssertContentTrait::assertOptionByText function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a select option with the visible text exists.
AssertContentTrait::assertOptionSelected function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a select option in the current page is checked.
AssertContentTrait::assertOptionSelectedWithDrupalSelector function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a select option in the current page is checked.
AssertContentTrait::assertOptionWithDrupalSelector function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a select option in the current page exists.
AssertContentTrait::assertPattern function core/tests/Drupal/KernelTests/AssertContentTrait.php Triggers a pass if the Perl regex pattern is found in the raw content.
AssertContentTrait::assertRaw function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if the raw text IS found on the loaded page, fail otherwise.
AssertContentTrait::assertText function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if the page (with HTML stripped) contains the text.
AssertContentTrait::assertTextHelper function core/tests/Drupal/KernelTests/AssertContentTrait.php Helper for assertText and assertNoText.
AssertContentTrait::assertTextPattern function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a Perl regex pattern is found in the plain-text content.
AssertContentTrait::assertThemeOutput function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts themed output.
AssertContentTrait::assertTitle function core/tests/Drupal/KernelTests/AssertContentTrait.php Pass if the page title is the given string.
AssertContentTrait::assertUniqueText function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if the text is found ONLY ONCE on the text version of the page.
AssertContentTrait::assertUniqueTextHelper function core/tests/Drupal/KernelTests/AssertContentTrait.php Helper for assertUniqueText and assertNoUniqueText.
AssertContentTrait::buildXPathQuery function core/tests/Drupal/KernelTests/AssertContentTrait.php Builds an XPath query.
AssertContentTrait::constructFieldXpath function core/tests/Drupal/KernelTests/AssertContentTrait.php Helper: Constructs an XPath for the given set of attributes and value.
AssertContentTrait::cssSelect function core/tests/Drupal/KernelTests/AssertContentTrait.php Searches elements using a CSS selector in the raw content.
AssertContentTrait::getAllOptions function core/tests/Drupal/KernelTests/AssertContentTrait.php Get all option elements, including nested options, in a select.
AssertContentTrait::getDrupalSettings function core/tests/Drupal/KernelTests/AssertContentTrait.php Gets the value of drupalSettings for the currently-loaded page.
AssertContentTrait::getRawContent function core/tests/Drupal/KernelTests/AssertContentTrait.php Gets the current raw content.
AssertContentTrait::getSelectedItem function core/tests/Drupal/KernelTests/AssertContentTrait.php Get the selected value from a select field.
AssertContentTrait::getTextContent function core/tests/Drupal/KernelTests/AssertContentTrait.php Retrieves the plain-text content from the current raw content.
AssertContentTrait::getUrl function core/tests/Drupal/KernelTests/AssertContentTrait.php Get the current URL from the cURL handler.
AssertContentTrait::parse function core/tests/Drupal/KernelTests/AssertContentTrait.php Parse content returned from curlExec using DOM and SimpleXML.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.