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 11.x for assert
  5. Other projects
Title Object type File name Summary
LocalActionTest::assertLocalAction function core/modules/system/tests/src/Functional/Menu/LocalActionTest.php Asserts local actions in the page output.
LocaleConfigSubscriberTest::assertActiveConfig function core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php Ensures configuration was saved correctly.
LocaleConfigSubscriberTest::assertConfigOverride function core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php Ensures configuration was saved correctly.
LocaleConfigSubscriberTest::assertNoConfigOverride function core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php Ensures configuration override is not present anymore.
LocaleConfigSubscriberTest::assertNoTranslation function core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php Ensures no translation exists.
LocaleConfigSubscriberTest::assertTranslation function core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php Asserts if a specific translation exists and its customization status.
LocaleConfigTranslationTest::assertNodeConfig function core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php Check that node configuration source strings are made available in locale.
LocaleUpdateBase::assertTranslation function core/modules/locale/tests/src/Functional/LocaleUpdateBase.php Checks the translation of a string.
LocalTaskIntegrationTestBase::assertLocalTasks function core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php Tests integration for local tasks.
LocalTasksTest::assertLocalTaskAppears function core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php Ensures that some local task appears.
LocalTasksTest::assertLocalTasks function core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php Asserts local tasks in the page output.
LocalTasksTest::assertNoLocalTasks function core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php Asserts that the local tasks on the specified level are not being printed.
LocalTasksTest::assertSameLocalTaskUrl function core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php Asserts that the local task URL matches the expected alias.
ManageDisplayTest::assertFieldSelectOptions function core/modules/field_ui/tests/src/FunctionalJavascript/ManageDisplayTest.php Checks if a select element contains the specified options.
ManageDisplayTest::assertFieldSelectOptions function core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php Checks if a select element contains the specified options.
ManageDisplayTest::assertNodeViewNoText function core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php Asserts that a string is not found in the rendered node in a view mode.
ManageDisplayTest::assertNodeViewText function core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php Asserts that a string is found in the rendered node in a view mode.
ManageDisplayTest::assertNodeViewTextHelper function core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php Asserts that a string is (not) found in the rendered node in a view mode.
ManageDisplayTest::assertOrderInPage function core/modules/field_ui/tests/src/Functional/ManageDisplayTest.php Asserts that several pieces of markup are in a given order in the page.
ManageFieldsLifecycleTest::assertFieldSettings function core/modules/field_ui/tests/src/Functional/ManageFieldsLifecycleTest.php Asserts field settings are as expected.
MarkupInterfaceComparator::assertEquals function core/tests/Drupal/TestTools/Comparator/MarkupInterfaceComparator.php
MarkupInterfaceComparatorTest::testAssertEquals function core/tests/Drupal/KernelTests/Core/Test/Comparator/MarkupInterfaceComparatorTest.php @covers ::assertEquals
@dataProvider dataSetProvider
MarkupInterfaceComparatorTest::testDeprecatedAssertEquals function core/tests/Drupal/KernelTests/Core/Test/Comparator/MarkupInterfaceComparatorTest.php @covers ::assertEquals
@dataProvider dataSetProviderDeprecatedCases
@group legacy
MediaAccessControlHandlerTest::assertAccess function core/modules/media/tests/src/Kernel/MediaAccessControlHandlerTest.php Asserts an access result.
MediaEmbedFilterTestBase::assertHasAttributes function core/modules/media/tests/src/Kernel/MediaEmbedFilterTestBase.php Assert that the SimpleXMLElement object has the given attributes.
MediaJavascriptTestBase::assertLinkToCreatedMedia function core/modules/media/tests/src/FunctionalJavascript/MediaJavascriptTestBase.php Asserts that a link to a new media item is displayed in the messages area.
MediaLibraryAccessTest::assertAccess function core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php Asserts various aspects of an access result.
MediaLibraryDisplayModeTest::assertFormDisplay function core/modules/media_library/tests/src/Functional/MediaLibraryDisplayModeTest.php Asserts the media library form display components for a media type.
MediaLibraryDisplayModeTest::assertViewDisplay function core/modules/media_library/tests/src/Functional/MediaLibraryDisplayModeTest.php Asserts the media library view display components for a media type.
MediaLibraryTestBase::assertAnnounceContains function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Checks for inclusion of text in #drupal-live-announce.
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.

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