Search for all

  1. Search 7.x for all
  2. Search 8.9.x for all
  3. Search 10.3.x for all
  4. Search 11.x for all
  5. Other projects
Title Object type File name Summary
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
@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
AssertHelperTestClass class core/tests/fixtures/AssertHelperTestClass.php A helper class for deprecation of AssertHelperTrait.
AssertHelperTestClass.php file core/tests/fixtures/AssertHelperTestClass.php
AssertHelperTestClass::testMethod function core/tests/fixtures/AssertHelperTestClass.php
AssertHelperTrait trait core/tests/Drupal/Tests/AssertHelperTrait.php Provides helper methods for assertions.
AssertHelperTrait.php file core/tests/Drupal/Tests/AssertHelperTrait.php
AssertHelperTrait::castSafeStrings function core/tests/Drupal/Tests/AssertHelperTrait.php Casts MarkupInterface objects into strings.
AssertHelperTraitTest class core/tests/Drupal/Tests/AssertHelperTraitTest.php @coversDefaultClass \Drupal\Tests\AssertHelperTrait
@group simpletest
@group Tests
@group legacy
AssertHelperTraitTest.php file core/tests/Drupal/Tests/AssertHelperTraitTest.php
AssertHelperTraitTest::providerCastSafeStrings function core/tests/Drupal/Tests/AssertHelperTraitTest.php
AssertHelperTraitTest::testCastSafeStrings function core/tests/Drupal/Tests/AssertHelperTraitTest.php @covers ::castSafeStrings
@dataProvider providerCastSafeStrings
AssertHelperTraitTest::testTraitDeprecation function core/tests/Drupal/Tests/AssertHelperTraitTest.php
AssertLegacyTrait trait core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Provides convenience methods for assertions in browser tests.
AssertLegacyTrait trait core/tests/Drupal/KernelTests/AssertLegacyTrait.php Translates Simpletest assertion methods to PHPUnit.
AssertLegacyTrait.php file core/tests/Drupal/KernelTests/AssertLegacyTrait.php
AssertLegacyTrait.php file core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php
AssertLegacyTrait::assert function core/tests/Drupal/KernelTests/AssertLegacyTrait.php
AssertLegacyTrait::assertCacheTag function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts whether an expected cache tag was present in the last response.
AssertLegacyTrait::assertElementNotPresent function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that the element with the given CSS selector is not present.
AssertLegacyTrait::assertElementPresent function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that the element with the given CSS selector is present.
AssertLegacyTrait::assertEqual function core/tests/Drupal/KernelTests/AssertLegacyTrait.php
AssertLegacyTrait::assertEscaped function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Passes if the raw text IS found escaped on the loaded page, fail otherwise.
AssertLegacyTrait::assertField function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that a field exists with the given name or ID.
AssertLegacyTrait::assertFieldById function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Asserts that a field exists with the given ID and value.

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