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
AssertLegacyTrait::assertNoRaw function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Passes if the raw text IS not found on the loaded page, fail otherwise.
AssertLegacyTrait::assertNotEqual function core/tests/Drupal/KernelTests/AssertLegacyTrait.php
AssertLegacyTrait::assertNoText function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Passes if the page (with HTML stripped) does not contains the text.
AssertLegacyTrait::assertNotIdentical function core/tests/Drupal/KernelTests/AssertLegacyTrait.php
AssertLegacyTrait::assertNoUniqueText function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Passes if the text is found MORE THAN ONCE on the text version of the 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::assertPattern function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Triggers a pass if the Perl regex pattern is found in the raw content.
AssertLegacyTrait::assertRaw function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Passes if the raw text IS found on the loaded page, fail otherwise.
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::assertText function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Passes if the page (with HTML stripped) contains the text.
AssertLegacyTrait::assertTextHelper function core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php Helper for assertText and assertNoText.
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::$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::testAssertNoCacheTag function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoCacheTag
@expectedDeprecation AssertLegacyTrait::assertNoCacheTag() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseHeaderNotContains() instead. See…
AssertLegacyTraitTest::testAssertNoPattern function core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php @covers ::assertNoPattern
@expectedDeprecation AssertLegacyTrait::assertNoPattern() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotMatches() instead. See https://www.drupal.org/node/3129738
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::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
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.

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