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
ContentModerationStateStorageSchemaTest::assertStorageException function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateStorageSchemaTest.php Assert if a storage exception is triggered when saving a given entity.
ContentModerationStateTest::assertDefaultRevision function core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php Checks the default revision ID and publishing status for an entity.
ContentModerationTest::assertAllMedia function core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php Asserts all media items are visible.
ContentModerationTest::assertOnlyPublishedMedia function core/modules/media_library/tests/src/FunctionalJavascript/ContentModerationTest.php Asserts only published media items are visible.
ContentPreviewToggleTest::assertContextualLinks function core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php Checks if contextual links are working properly.
ContentPreviewToggleTest::assertOrderInPage function core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php Asserts that blocks in a given order in the page.
ContentTranslationFieldSyncRevisionTest::assertLatestRevisionFieldValues function core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php Asserts that the latest revision has the expected field values.
ContentTranslationFieldSyncRevisionTest::assertViolations function core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php Asserts that the expected violations were found.
ContentTranslationOutdatedRevisionTranslationTest::assertFlagWidget function core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php Checks whether the flag widget is displayed.
ContentTranslationSettingsTest::assertSettings function core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php Asserts that translatability has the expected value for the given bundle.
ContentTranslationWorkflowsTest::assertNoSharedElements function core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php Assert that the current page does not contain shared form elements.
ContextDefinitionTest::testEntityContextDefinitionAssert function core/tests/Drupal/KernelTests/Core/Plugin/ContextDefinitionTest.php @covers ::__construct
ContextualDynamicContextTest::assertContextualLinkPlaceHolder function core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php Asserts that a contextual link placeholder with the given id exists.
ContextualDynamicContextTest::assertNoContextualLinkPlaceHolder function core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php Asserts that a contextual link placeholder with the given id does not exist.
ContextualLinksTest::assertCorrectContextualLinks function core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php Assert the contextual links are correct.
ContextualLinksTest::assertCorrectContextualLinksInNode function core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php Asserts the contextual links are correct on the canonical entity route.
ContextualLinksTest::assertCorrectContextualLinksInUi function core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php Asserts the contextual links are correct in Layout Builder UI.
ControllerResolverTest::assertCallableController function core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php Asserts that the controller is callable and produces the correct output.
CookieResourceTestTrait::assertAuthenticationEdgeCases function core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php
CookieResourceTestTrait::assertResponseWhenMissingAuthentication function core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php
DateTimePlusTest::assertDateTimestamp function core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php Asserts a DateTimePlus value.
DbLogResourceTest::assertNormalizationEdgeCases function core/modules/dblog/tests/src/Functional/DbLogResourceTest.php Asserts normalization-specific edge cases.
DbLogTest::assertLogMessage function core/modules/dblog/tests/src/Functional/DbLogTest.php Confirms that a log message appears on the database log overview screen.
DefaultConfigTest::assertExtensionConfig function core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php Tests that the config provided by the extension is correct.
DefaultRevisionStateTest::assertModerationState function core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php Verifies the expected moderation state revision exists.
DemoUmamiProfileTest::assertDefaultConfig function core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php Asserts that the default configuration matches active configuration.
DestinationCategoryTest::assertCategories function core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php Asserts that all migrations are tagged as either Configuration or Content.
DiscoveryTestBase::assertDefinitionIdentical function core/tests/Drupal/KernelTests/Core/Plugin/Discovery/DiscoveryTestBase.php Asserts a definition against an expected definition.
DisplayPageWebTest::assertPagePath function core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php Tests that we can successfully change a view page display path.
DriverSpecificConnectionUnitTestBase::assertConnection function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificConnectionUnitTestBase.php Asserts that a connection ID exists.
DriverSpecificConnectionUnitTestBase::assertNoConnection function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificConnectionUnitTestBase.php Asserts that a connection ID does not exist.
DriverSpecificSchemaTestBase::assertCollation function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php Asserts that fields have the correct collation, if supported.
DriverSpecificSchemaTestBase::assertFieldAdditionRemoval function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php Asserts that a given field can be added and removed from a table.
DriverSpecificSchemaTestBase::assertFieldChange function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php Asserts that a field can be changed from one spec to another.
DriverSpecificSchemaTestBase::assertFieldCharacteristics function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php Asserts that a newly added field has the correct characteristics.
DriverSpecificTransactionTestBase::assertRowAbsent function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Asserts that a given row is absent from the test table.
DriverSpecificTransactionTestBase::assertRowPresent function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Asserts that a given row is present in the test table.
DrupalComponentTest::assertNoCoreUsage function core/tests/Drupal/Tests/Component/DrupalComponentTest.php Asserts that the given class is not using any class from Core namespace.
DrupalComponentTest::providerAssertNoCoreUsage function core/tests/Drupal/Tests/Component/DrupalComponentTest.php Data provider for testAssertNoCoreUsage().
DrupalComponentTest::testAssertNoCoreUsage function core/tests/Drupal/Tests/Component/DrupalComponentTest.php @covers \Drupal\Tests\Component\DrupalComponentTest::assertNoCoreUsage
@dataProvider providerAssertNoCoreUsage
DrupalMessengerServiceTest::testStatusMessageAssertions function core/modules/system/tests/src/Functional/Bootstrap/DrupalMessengerServiceTest.php Tests assertion methods in WebAssert related to status messages.
EditModeTest::assertAnnounceEditMode function core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php Asserts that the correct message was announced when entering edit mode.
EditModeTest::assertAnnounceLeaveEditMode function core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php Assert that the correct message was announced when leaving edit mode.
EntityAccessControlHandlerTest::assertEntityAccess function core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php Asserts entity access correctly grants or denies access.
EntityApiTest::assertCRUD function core/tests/Drupal/KernelTests/Core/Entity/EntityApiTest.php Executes a test set for a defined entity type and user.
EntityContextDefinitionIsSatisfiedTest::assertRequirementIsSatisfied function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php Asserts that the requirement is satisfied as expected.
EntityCrudHookTest::assertHookMessageOrder function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Checks the order of CRUD hook execution messages.
EntityDisplayTest::assertDependency function core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php Asserts that $key is a $type type dependency of $display config entity.
EntityDisplayTest::assertDependencyHelper function core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php Provides a helper for dependency assertions.
EntityDisplayTest::assertNoDependency function core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php Asserts that $key is not a $type type dependency of $display config entity.

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