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
MediaRevisionTest::assertRevisionCount function core/modules/media/tests/src/Functional/MediaRevisionTest.php Asserts that an entity has a certain number of revisions.
MediaSourceImageTest::assertViewDisplayConfigured function core/modules/media/tests/src/FunctionalJavascript/MediaSourceImageTest.php Asserts the proper entity view display components for a media type.
MediaTest::assertContextMenuItemExists function core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php Asserts that a context menu item exists by aria-label attribute.
MediaTest::assertContextMenuItemNotExists function core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php Asserts that a context menu item does not exist by aria-label attribute.
MediaTest::assertSourceAttributeSame function core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php Verifies value of an attribute on the downcast <drupal-media> element.
MediaTest::assertSourceAttributeSame function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php Verifies value of an attribute on the downcast <drupal-media> element.
MediaUiFunctionalTest::assertHelpLink function core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php Asserts whether a given link is present.
MediaUiFunctionalTest::assertHelpTexts function core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php Asserts that the given texts are present exactly once.
MediaUiFunctionalTest::assertNoHelpLink function core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php Asserts that a given link is not present.
MediaUiFunctionalTest::assertNoHelpTexts function core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php Asserts that none of the given texts are present.
MenuLinksTest::assertMenuLinkParents function core/modules/menu_link_content/tests/src/Kernel/MenuLinksTest.php Assert that at set of links is properly parented.
MenuTreeStorageTest::assertMenuLink function core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php Tests that a link's stored representation matches the expected values.
MenuUiNodeTypeTest::assertMenuNamesAreSorted function core/modules/menu_ui/tests/src/Kernel/MenuUiNodeTypeTest.php Asserts that the available menu names are sorted alphabetically by label.
MenuUiTrait::assertMenuLink function core/modules/menu_ui/tests/src/Traits/MenuUiTrait.php Asserts that a menu fetched from the database matches an expected one.
MessageCommandTest::assertAnnounceContains function core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php Checks for inclusion of text in #drupal-live-announce.
MessageCommandTest::assertAnnounceNotContains function core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php Checks for absence of the given text from #drupal-live-announce.
MessageCommandTest::testJsStatusMessageAssertions function core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php Tests methods in JsWebAssert related to status messages.
MigrateActionsTest::assertEntity function core/modules/system/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php Asserts various aspects of an Action entity.
MigrateActionsTest::assertEntity function core/modules/system/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php Asserts various aspects of an Action entity.
MigrateBlockContentEntityDisplayTest::assertDisplay function core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentEntityDisplayTest.php Asserts a display entity.
MigrateBlockContentEntityFormDisplayTest::assertDisplay function core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentEntityFormDisplayTest.php Asserts a display entity.
MigrateBlockTest::assertEntity function core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php Asserts various aspects of a block.
MigrateBlockTest::assertEntity function core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php Asserts various aspects of a block.
MigrateBlockTest::assertEntity function core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php Asserts various aspects of a block.
MigrateCommentEntityDisplayTest::assertDisplay function core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityDisplayTest.php Asserts various aspects of a comment component in an entity view display.
MigrateCommentEntityDisplayTest::assertDisplay function core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityDisplayTest.php Asserts various aspects of a comment component in an entity view display.
MigrateCommentEntityFormDisplaySubjectTest::assertSubjectNotVisible function core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityFormDisplaySubjectTest.php Asserts that the comment subject field is not visible for a node type.
MigrateCommentEntityFormDisplaySubjectTest::assertSubjectNotVisible function core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplaySubjectTest.php Asserts that the comment subject field is not visible for a node type.
MigrateCommentEntityFormDisplaySubjectTest::assertSubjectVisible function core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityFormDisplaySubjectTest.php Asserts that the comment subject field is visible for a node type.
MigrateCommentEntityFormDisplaySubjectTest::assertSubjectVisible function core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplaySubjectTest.php Asserts that the comment subject field is visible for a node type.
MigrateCommentEntityFormDisplayTest::assertDisplay function core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityFormDisplayTest.php Asserts various aspects of a comment component in an entity form display.
MigrateCommentEntityFormDisplayTest::assertDisplay function core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplayTest.php Asserts various aspects of a comment component in an entity form display.
MigrateCommentFieldInstanceTest::assertEntity function core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldInstanceTest.php Asserts a comment field instance entity.
MigrateCommentFieldInstanceTest::assertEntity function core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldInstanceTest.php Asserts a comment field instance entity.
MigrateCommentFieldTest::assertEntity function core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldTest.php Asserts a comment field entity.
MigrateCommentFieldTest::assertEntity function core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldTest.php Asserts a comment field entity.
MigrateCommentTypeTest::assertEntity function core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php Asserts a comment type entity.
MigrateCommentTypeTest::assertEntity function core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php Asserts a comment type entity.
MigrateContactCategoryTest::assertEntity function core/modules/contact/tests/src/Kernel/Migrate/MigrateContactCategoryTest.php Performs various assertions on a single contact form entity.
MigrateEntityContentBaseTest::assertTranslations function core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php Check the existing translations of an entity.
MigrateFieldFormatterSettingsTest::assertComponent function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php Asserts various aspects of a particular component of a view display.
MigrateFieldFormatterSettingsTest::assertComponentNotExists function core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php Asserts that a particular component is NOT included in a display.
MigrateFieldFormatterSettingsTest::assertComponentNotExists function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php Asserts that a particular component is NOT included in a display.
MigrateFieldFormatterSettingsTest::assertEntity function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php Asserts various aspects of a view display.
MigrateFieldInstanceTest::assertEntity function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php Asserts various aspects of a field config entity.
MigrateFieldInstanceTest::assertEntityReferenceFields function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php Asserts the settings of an entity reference field config entity.
MigrateFieldInstanceTest::assertLinkFields function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php Asserts the settings of a link field config entity.
MigrateFieldInstanceWidgetSettingsTest::assertComponent function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceWidgetSettingsTest.php Asserts various aspects of a particular component of a form display.
MigrateFieldInstanceWidgetSettingsTest::assertEntity function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceWidgetSettingsTest.php Asserts various aspects of a form display entity.
MigrateFieldTest::assertEntity function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldTest.php Asserts various aspects of a field_storage_config entity.

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