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. Search 11.x for assert
  6. Other projects
Title Object type File name Summary
CKEditor5TestTrait::assertVisibleBalloon function core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php Asserts a particular balloon is visible.
CKEditor5ValidationTestTrait::assertExpectedCkeditor5Violations function core/modules/ckeditor5/tests/src/Traits/CKEditor5ValidationTestTrait.php Asserts CKEditor5 validation errors match an expected array of strings.
CommandsTest::assertCommand function core/tests/Drupal/KernelTests/Core/Ajax/CommandsTest.php Asserts the array of Ajax commands contains the searched command.
CommandsTest::assertWaitPageContains function core/tests/Drupal/FunctionalJavascriptTests/Ajax/CommandsTest.php Asserts that page contains a text after waiting.
CommentFieldFilterTest::assertPageCounts function core/modules/comment/tests/src/Functional/Views/CommentFieldFilterTest.php Asserts that the given comment translation counts are correct.
CommentPagerTest::assertCommentOrder function core/modules/comment/tests/src/Functional/CommentPagerTest.php Asserts that the comments are displayed in the correct order.
CommentThreadingTest::assertNoParentLink function core/modules/comment/tests/src/Functional/CommentThreadingTest.php Asserts that the specified comment does not have a link to a parent.
CommentThreadingTest::assertParentLink function core/modules/comment/tests/src/Functional/CommentThreadingTest.php Asserts that the link to the specified parent comment is present.
CommentValidationTest::assertLengthViolation function core/modules/comment/tests/src/Kernel/CommentValidationTest.php Verifies that a length violation exists for the given field.
ComposerBuildTestBase::assertDrupalVersion function core/tests/Drupal/BuildTests/Composer/ComposerBuildTestBase.php Assert that the VERSION constant in Drupal.php is the expected value.
ConfigAfterInstallerTestBase::assertInstalledConfig function core/tests/Drupal/FunctionalTests/Installer/ConfigAfterInstallerTestBase.php Ensures that all the installed config looks like the exported one.
ConfigDiffTest::assertYamlEdit function core/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php Helper method to test that an edit is found in the diff of two storages.
ConfigEntityImportTest::assertConfigUpdateImport function core/modules/system/tests/src/Kernel/Entity/ConfigEntityImportTest.php Asserts that config entities are updated during import.
ConfigEntityQueryTest::assertResults function core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php Asserts the results as expected regardless of order.
ConfigEntityValidationTestBase::assertValidationErrors function core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBase.php Asserts a set of validation errors is raised when the entity is validated.
ConfigTest::assertConfigDataEquals function core/tests/Drupal/Tests/Core/Config/ConfigTest.php Asserts all config data equals $data provided.
ConfigTest::assertOriginalConfigDataEquals function core/tests/Drupal/Tests/Core/Config/ConfigTest.php Asserts all original config data equals $data provided.
ConfigTest::assertOverriddenKeys function core/tests/Drupal/Tests/Core/Config/ConfigTest.php Asserts that the correct keys are overridden.
ConfigTranslationUiTestBase::assertDisabledTextarea function core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTestBase.php Asserts that a textarea with a given ID has been disabled from editing.
ConnectionTest::testIdentifierQuotesAssertCount function core/tests/Drupal/Tests/Core/Database/ConnectionTest.php Tests identifier quotes assert count.
ConnectionTest::testIdentifierQuotesAssertString function core/tests/Drupal/Tests/Core/Database/ConnectionTest.php Tests identifier quotes assert string.
ContactLinkTest::assertContactLinks function core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php Asserts whether certain users contact links appear on the page.
ContentEntityTest::assertIds function core/modules/migrate/tests/src/Kernel/Plugin/source/ContentEntityTest.php Helper to assert IDs structure.
ContentImportTest::assertContentWasImported function core/tests/Drupal/FunctionalTests/DefaultContent/ContentImportTest.php Asserts that the default content was imported as expected.
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 Tests entity context definition assert.
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 a 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
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.

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