Search for assert

  1. Search 7.x for assert
  2. Search 8.9.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
AssertLegacyTrait::assertTitle function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Pass if the page title is the given string.
AssertLegacyTrait::assertUniqueText function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Passes if the text is found ONLY ONCE on the text version of the page.
AssertLegacyTrait::assertUrl function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Passes if the internal browser's URL matches the given path.
AssertLegacyTrait::buildXPathQuery function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Builds an XPath query.
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.
AssertLegacyTrait::pass function core/tests/Drupal/KernelTests/AssertLegacyTrait.php
AssertLegacyTrait::verbose function core/tests/Drupal/KernelTests/AssertLegacyTrait.php
AssertLegacyTraitDeprecatedTest class core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php Tests deprecated AssertLegacyTrait functionality.
AssertLegacyTraitDeprecatedTest.php file core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php
AssertLegacyTraitDeprecatedTest::$defaultTheme property core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php The theme to install as the default for testing.
AssertLegacyTraitDeprecatedTest::$modules property core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php Modules to enable.
AssertLegacyTraitDeprecatedTest::testGetAllOptions function core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php Tests getAllOptions().
AssertLegacyTraitTest class core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @coversDefaultClass \Drupal\FunctionalTests\AssertLegacyTrait
@group Assert
@group legacy
AssertLegacyTraitTest.php file core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php
AssertLegacyTraitTest::$page property core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php The mocked page element used for testing.
AssertLegacyTraitTest::$session property core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php The mocked Mink session object used for testing.
AssertLegacyTraitTest::$webAssert property core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php The mocked web assert class.
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::setUp function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php
AssertLegacyTraitTest::testAssertCacheTag function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertCacheTag
AssertLegacyTraitTest::testAssertElementNotPresent function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertElementNotPresent
AssertLegacyTraitTest::testAssertElementPresent function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertElementPresent
AssertLegacyTraitTest::testAssertLinkByHref function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertLinkByHref
AssertLegacyTraitTest::testAssertNoCacheTag function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoCacheTag
AssertLegacyTraitTest::testAssertNoLinkByHref function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoLinkByHref
AssertLegacyTraitTest::testAssertNoPattern function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoPattern
AssertLegacyTraitTest::testAssertNoRaw function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoRaw
AssertLegacyTraitTest::testAssertNoUniqueText function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoUniqueText
AssertLegacyTraitTest::testAssertNoUniqueTextFail function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoUniqueText
AssertLegacyTraitTest::testAssertNoUniqueTextMarkup function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoUniqueText
AssertLegacyTraitTest::testAssertNoUniqueTextUnknown function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoUniqueText
AssertLegacyTraitTest::testAssertOptionSelected function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertOptionSelected
AssertLegacyTraitTest::testAssertOptionSelectedFail function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertOptionSelected
AssertLegacyTraitTest::testAssertRaw function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertRaw
AssertLegacyTraitTest::testAssertTextHelper function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertTextHelper
AssertLegacyTraitTest::testAssertUniqueText function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUniqueText
AssertLegacyTraitTest::testAssertUniqueTextFail function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUniqueText
AssertLegacyTraitTest::testAssertUniqueTextMarkup function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUniqueText
AssertLegacyTraitTest::testAssertUniqueTextUnknown function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUniqueText
AssertLegacyTraitTest::testAssertUrl function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUrl
AssertLegacyTraitTest::testConstructFieldXpath function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::constructFieldXpath
AssertLegacyTraitTest::testPass function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::pass
AssertMailTrait trait core/lib/Drupal/Core/Test/AssertMailTrait.php Provides methods for testing emails sent during test runs.
AssertMailTrait.php file core/lib/Drupal/Core/Test/AssertMailTrait.php
AssertMailTrait::assertMail function core/lib/Drupal/Core/Test/AssertMailTrait.php Asserts that the most recently sent email message has the given value.
AssertMailTrait::assertMailPattern function core/lib/Drupal/Core/Test/AssertMailTrait.php Asserts that the most recently sent email message has the pattern in it.
AssertMailTrait::assertMailString function core/lib/Drupal/Core/Test/AssertMailTrait.php Asserts that the most recently sent email message has the string in it.

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