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
LayoutBuilderUiTest::assertHighlightedElement function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderUiTest.php Confirms the presence of the 'is-layout-builder-highlighted' class.
LayoutBuilderUiTest::assertHighlightNotExists function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderUiTest.php Waits for the dialog to close and confirms no highlights are present.
LayoutBuilderUiTest::assertModifiedLayout function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderUiTest.php Asserts that modifying a layout works as expected.
LayoutRestTestBase::assertAuthenticationEdgeCases function core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php Asserts authentication provider-specific edge cases.
LayoutRestTestBase::assertNormalizationEdgeCases function core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php Asserts normalization-specific edge cases.
LayoutRestTestBase::assertResponseWhenMissingAuthentication function core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php Verifies the error response in case of missing authentication.
LayoutSectionTest::assertLayoutSection function core/modules/layout_builder/tests/src/Functional/LayoutSectionTest.php Asserts the output of a layout section.
LibraryDiscoveryIntegrationTest::assertAssetInLibrary function core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php Asserts that the specified asset is in the given library.
LibraryDiscoveryIntegrationTest::assertNoAssetInLibrary function core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php Asserts that the specified asset is not in the given library.
LibraryDiscoveryParserTest::providerTestCssAssert function core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php Data provider for testing bad CSS declarations.
LibraryDiscoveryParserTest::testCssAssert function core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php Verify an assertion fails if CSS declarations have non-existent categories.
LinkFieldTest::assertInvalidEntries function core/modules/link/tests/src/Functional/LinkFieldTest.php Asserts that invalid URLs cannot be submitted.
LinkFieldTest::assertValidEntries function core/modules/link/tests/src/Functional/LinkFieldTest.php Asserts that valid URLs can be submitted.
LinkFieldUITest::assertFieldContainsRawText function core/modules/link/tests/src/Functional/LinkFieldUITest.php Checks that given field contains the given raw text.
LinkFieldUITest::assertNoFieldContainsRawText function core/modules/link/tests/src/Functional/LinkFieldUITest.php Checks that given field does not contain the given raw text.
LinkGeneratorTest::assertLink function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Checks that a link with certain properties exists in a given HTML snippet.
LinkGeneratorTest::assertNoXPathResults function core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php Checks that the given XPath query has no results in a given HTML snippet.
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 Ensures a translation exists and is marked as customized.
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.
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.
ManageFieldsFunctionalTest::assertFieldSettings function core/modules/field_ui/tests/src/Functional/ManageFieldsFunctionalTest.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
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::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.

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