Search for assert

  1. Search 7.x for assert
  2. Search 9.5.x for assert
  3. Search 8.9.x for assert
  4. Search 10.3.x for assert
  5. Other projects
Title Object type File name Summary
AccessResultTest::assertDefaultCacheability function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @internal
AdminUiTest::assertNoAjaxRequestTriggered function core/modules/ckeditor5/tests/src/FunctionalJavascript/AdminUiTest.php Asserts that no (new) AJAX requests were triggered.
AjaxTest::assertInsert function core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php Assert insert.
AjaxTest::assertWaitPageContains function core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php Asserts that page contains an expected value after waiting.
ajax_forms_test_advanced_commands_announce_assertive_callback function core/modules/system/tests/modules/ajax_forms_test/ajax_forms_test.module Ajax form callback: Selects 'announce' with 'assertive' priority.
AnnounceCommand::PRIORITY_ASSERTIVE constant core/lib/Drupal/Core/Ajax/AnnounceCommand.php The assertive priority attribute value.
AnonResourceTestTrait::assertAuthenticationEdgeCases function core/modules/rest/tests/src/Functional/AnonResourceTestTrait.php
AnonResourceTestTrait::assertResponseWhenMissingAuthentication function core/modules/rest/tests/src/Functional/AnonResourceTestTrait.php
ArchiverTestBase::assertArchiveContainsFile function core/tests/Drupal/KernelTests/Core/Archiver/ArchiverTestBase.php Asserts an archive contains a given file.
ArchiverTestBase::assertArchiveNotContainsFile function core/tests/Drupal/KernelTests/Core/Archiver/ArchiverTestBase.php Asserts an archive does not contain a given file.
AreaDisplayLinkTest::assertFormOptions function core/modules/views/tests/src/Kernel/Handler/AreaDisplayLinkTest.php Assert the display options contains only path based displays.
AreaDisplayLinkTest::assertNoWarningMessages function core/modules/views/tests/src/Kernel/Handler/AreaDisplayLinkTest.php Assert no warning messages are shown when all display are equal.
AreaDisplayLinkTest::assertRenderedDisplayLinks function core/modules/views/tests/src/Kernel/Handler/AreaDisplayLinkTest.php Assert the display links are correctly rendered for a display.
AreaDisplayLinkTest::assertWarningMessages function core/modules/views/tests/src/Kernel/Handler/AreaDisplayLinkTest.php Assert the warning messages are shown after changing the page_1 display.
AssertBlockAppearsTrait trait core/modules/block/tests/src/Functional/AssertBlockAppearsTrait.php Provides test assertions for testing block appearance.
AssertBlockAppearsTrait.php file core/modules/block/tests/src/Functional/AssertBlockAppearsTrait.php
AssertBlockAppearsTrait::assertBlockAppears function core/modules/block/tests/src/Functional/AssertBlockAppearsTrait.php Checks to see whether a block appears on the page.
AssertBlockAppearsTrait::assertNoBlockAppears function core/modules/block/tests/src/Functional/AssertBlockAppearsTrait.php Checks to see whether a block does not appears on the page.
AssertBreadcrumbTrait trait core/modules/system/tests/src/Functional/Menu/AssertBreadcrumbTrait.php Provides test assertions for verifying breadcrumbs.
AssertBreadcrumbTrait.php file core/modules/system/tests/src/Functional/Menu/AssertBreadcrumbTrait.php
AssertBreadcrumbTrait::assertBreadcrumb function core/modules/system/tests/src/Functional/Menu/AssertBreadcrumbTrait.php Assert that a given path shows certain breadcrumb links.
AssertBreadcrumbTrait::assertBreadcrumbParts function core/modules/system/tests/src/Functional/Menu/AssertBreadcrumbTrait.php Assert that a trail exists in the internal browser.
AssertBreadcrumbTrait::getBreadcrumbParts function core/modules/system/tests/src/Functional/Menu/AssertBreadcrumbTrait.php Returns the breadcrumb contents of the current page in the internal browser.
AssertConfigEntityImportTrait trait core/modules/config/tests/src/Traits/AssertConfigEntityImportTrait.php Provides test assertions for testing config entity synchronization.
AssertConfigEntityImportTrait.php file core/modules/config/tests/src/Traits/AssertConfigEntityImportTrait.php
AssertConfigEntityImportTrait::assertConfigEntityImport function core/modules/config/tests/src/Traits/AssertConfigEntityImportTrait.php Asserts that a config entity can be imported without changing it.
AssertConfigTrait trait core/tests/Drupal/KernelTests/AssertConfigTrait.php Trait to help with diffing config.
AssertConfigTrait.php file core/tests/Drupal/KernelTests/AssertConfigTrait.php
AssertConfigTrait::assertConfigDiff function core/tests/Drupal/KernelTests/AssertConfigTrait.php Ensures that a specific config diff does not contain unwanted changes.
AssertContentTrait trait core/tests/Drupal/KernelTests/AssertContentTrait.php Provides test methods to assert content.
AssertContentTrait.php file core/tests/Drupal/KernelTests/AssertContentTrait.php
AssertContentTrait::$content property core/tests/Drupal/KernelTests/AssertContentTrait.php The current raw content.
AssertContentTrait::$drupalSettings property core/tests/Drupal/KernelTests/AssertContentTrait.php The drupalSettings value from the current raw $content.
AssertContentTrait::$elements property core/tests/Drupal/KernelTests/AssertContentTrait.php The XML structure parsed from the current raw $content.
AssertContentTrait::$plainTextContent property core/tests/Drupal/KernelTests/AssertContentTrait.php The plain-text content of raw $content (text nodes).
AssertContentTrait::assertEscaped function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if the raw text IS found escaped on the loaded page, fail otherwise.
AssertContentTrait::assertField function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists with the given name or ID.
AssertContentTrait::assertFieldById function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists with the given ID and value.
AssertContentTrait::assertFieldByName function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists with the given name and value.
AssertContentTrait::assertFieldByXPath function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists in the current page by the given XPath.
AssertContentTrait::assertFieldChecked function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a checkbox field in the current page is checked.
AssertContentTrait::assertFieldsByValue function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field exists in the current page with a given Xpath result.
AssertContentTrait::assertLink function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if a link with the specified label is found.
AssertContentTrait::assertLinkByHref function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if a link containing a given href (part) is found.
AssertContentTrait::assertNoDuplicateIds function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that each HTML ID is used for just a single element.
AssertContentTrait::assertNoEscaped function core/tests/Drupal/KernelTests/AssertContentTrait.php Passes if raw text IS NOT found escaped on loaded page, fail otherwise.
AssertContentTrait::assertNoField function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field does not exist with the given name or ID.
AssertContentTrait::assertNoFieldById function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field does not exist with the given ID and value.
AssertContentTrait::assertNoFieldByName function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field does not exist with the given name and value.
AssertContentTrait::assertNoFieldByXPath function core/tests/Drupal/KernelTests/AssertContentTrait.php Asserts that a field does not exist or its value does not match, by XPath.

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