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[[api-linebreak]]
@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[[api-linebreak]]
AssertLegacyTraitTest::testAssertElementNotPresent function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertElementNotPresent[[api-linebreak]]
AssertLegacyTraitTest::testAssertElementPresent function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertElementPresent[[api-linebreak]]
AssertLegacyTraitTest::testAssertLinkByHref function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertLinkByHref[[api-linebreak]]
AssertLegacyTraitTest::testAssertNoCacheTag function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoCacheTag[[api-linebreak]]
AssertLegacyTraitTest::testAssertNoLinkByHref function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoLinkByHref[[api-linebreak]]
AssertLegacyTraitTest::testAssertNoPattern function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoPattern[[api-linebreak]]
AssertLegacyTraitTest::testAssertNoRaw function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoRaw[[api-linebreak]]
AssertLegacyTraitTest::testAssertNoUniqueText function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoUniqueText[[api-linebreak]]
AssertLegacyTraitTest::testAssertNoUniqueTextFail function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoUniqueText[[api-linebreak]]
AssertLegacyTraitTest::testAssertNoUniqueTextMarkup function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoUniqueText[[api-linebreak]]
AssertLegacyTraitTest::testAssertNoUniqueTextUnknown function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoUniqueText[[api-linebreak]]
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::testAssertRaw function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertRaw[[api-linebreak]]
AssertLegacyTraitTest::testAssertTextHelper function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertTextHelper[[api-linebreak]]
AssertLegacyTraitTest::testAssertUniqueText function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUniqueText[[api-linebreak]]
AssertLegacyTraitTest::testAssertUniqueTextFail function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUniqueText[[api-linebreak]]
AssertLegacyTraitTest::testAssertUniqueTextMarkup function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUniqueText[[api-linebreak]]
AssertLegacyTraitTest::testAssertUniqueTextUnknown function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUniqueText[[api-linebreak]]
AssertLegacyTraitTest::testAssertUrl function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertUrl[[api-linebreak]]
AssertLegacyTraitTest::testConstructFieldXpath function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::constructFieldXpath[[api-linebreak]]
AssertLegacyTraitTest::testPass function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::pass[[api-linebreak]]
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.