Search for on

  1. Search 7.x for on
  2. Search 8.9.x for on
  3. Search 10.3.x for on
  4. Search 11.x for on
  5. Other projects
Title Object type File name Summary
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.
AssertContentTrait::removeWhiteSpace function core/tests/Drupal/KernelTests/AssertContentTrait.php Removes all white-space between HTML tags from the raw content.
AssertContentTrait::setDrupalSettings function core/tests/Drupal/KernelTests/AssertContentTrait.php Sets the value of drupalSettings for the currently-loaded page.
AssertContentTrait::setRawContent function core/tests/Drupal/KernelTests/AssertContentTrait.php Sets the raw content (e.g. HTML).
AssertContentTrait::xpath function core/tests/Drupal/KernelTests/AssertContentTrait.php Performs an xpath search on the contents of the internal browser.
AssertContentTraitTest class core/tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php @coversDefaultClass \Drupal\KernelTests\AssertContentTrait[[api-linebreak]]
@group Test
AssertContentTraitTest.php file core/tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php
AssertContentTraitTest::testGetTextContent function core/tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php @covers ::getTextContent[[api-linebreak]]
AssertHelperTraitTest::testTraitDeprecation function core/tests/Drupal/Tests/AssertHelperTraitTest.php
AssertLegacyTrait::assertNoOption function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that a select option does NOT exist in the current page.
AssertLegacyTrait::assertOption function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that a select option in the current page exists.
AssertLegacyTrait::assertOptionByText function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that a select option with the visible text exists.
AssertLegacyTrait::assertOptionSelected function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that a select option in the current page is checked.
AssertLegacyTrait::assertResponse function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts the page responds with the specified response code.
AssertLegacyTrait::assertSession function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Returns WebAssert object.
AssertLegacyTrait::constructFieldXpath function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Helper: Constructs an XPath for the given set of attributes and value.
AssertLegacyTrait::getAllOptions function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Get all option elements, including nested options, in a select.
AssertLegacyTrait::getRawContent function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Gets the current raw content.
AssertLegacyTraitDeprecatedTest::testGetAllOptions function core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php Tests getAllOptions().
AssertLegacyTraitTest::$session property core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php The mocked Mink session object used for testing.
AssertLegacyTraitTest::assertSession function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php Returns WebAssert object.
AssertLegacyTraitTest::getSession function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php Returns a mocked behat session object.
AssertLegacyTraitTest::testAssertOptionSelected function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertOptionSelected[[api-linebreak]]
AssertLegacyTraitTest::testAssertOptionSelectedFail function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertOptionSelected[[api-linebreak]]
AssertLegacyTraitTest::testConstructFieldXpath function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::constructFieldXpath[[api-linebreak]]
AssertPageCacheContextsAndTagsTrait trait core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Provides test assertions for testing page-level cache contexts & tags.
AssertPageCacheContextsAndTagsTrait.php file core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php
AssertPageCacheContextsAndTagsTrait::assertCacheContext function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts whether an expected cache context was present in the last response.
AssertPageCacheContextsAndTagsTrait::assertCacheContexts function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache contexts are present in the current response.

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