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
MediaLibraryTestBase::assertElementExistsAfterWait function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Waits for the specified selector and returns it if not empty.
MediaLibraryTestBase::assertMediaAdded function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts a media item was added, but not yet saved.
MediaLibraryTestBase::assertMediaLibraryGrid function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts that the grid display of the widget view is visible.
MediaLibraryTestBase::assertMediaLibraryTable function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts that the table display of the widget view is visible.
MediaLibraryTestBase::assertNoMediaAdded function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts that media was not added, i.e. due to a validation error.
MediaLibraryTestBase::assertSelectedMediaCount function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Asserts the current text of the selected item counter.
MediaLibraryWidgetTest::assertMediaLibraryStateAccess function core/modules/media_library/tests/src/Kernel/MediaLibraryWidgetTest.php Assert if the given user has access to the given state.
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.
MediaTestBase::assertSourceAttributeSame function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php Verifies value of an attribute on the downcast <drupal-media> element.
MediaUiReferenceWidgetTest::assertHelpLink function core/modules/media/tests/src/Functional/MediaUiReferenceWidgetTest.php Asserts whether a given link is present.
MediaUiReferenceWidgetTest::assertHelpTexts function core/modules/media/tests/src/Functional/MediaUiReferenceWidgetTest.php Asserts that the given texts are present exactly once.
MediaUiReferenceWidgetTest::assertNoHelpLink function core/modules/media/tests/src/Functional/MediaUiReferenceWidgetTest.php Asserts that a given link is not present.
MediaUiReferenceWidgetTest::assertNoHelpTexts function core/modules/media/tests/src/Functional/MediaUiReferenceWidgetTest.php Asserts that none of the given texts are present.
MenuAccessTest::assertMenuItemRoutesAccess function core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php Asserts route requests connected to menu items have the expected access.
MenuAccessTest::assertUserRoutesAccess function core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php Asserts which routes a user has access to.
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.
MigrateBlockNoBlockContentTest::assertEntity function core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockNoBlockContentTest.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.
MigrateBlockTest::assertEntity function core/modules/forum/tests/src/Kernel/Migrate/d6/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.

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