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
BrowserTestBaseTest::testFieldAssertsForTextfields function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests field asserts using textfields.
BrowserTestBaseTest::testXpathAsserts function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests legacy field asserts which use xpath directly.
BrowserWithJavascriptTest::testAssertJsCondition function core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
BrowserWithJavascriptTest::testEscapingAssertions function core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php Tests assertEscaped() and assertUnescaped().
BuildTestBase::assertCommandExitCode function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Asserts that the last command returned the specified exit code.
BuildTestBase::assertCommandOutputContains function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Assert that text is present in the output of the most recent command.
BuildTestBase::assertCommandSuccessful function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Asserts that the last command ran without error.
BuildTestBase::assertDrupalVisit function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Helper function to assert that the last visit was a Drupal site.
BuildTestBase::assertErrorOutputContains function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Assert that text is present in the error output of the most recent command.
BuildTestBase::assertErrorOutputNotContains function core/tests/Drupal/BuildTests/Framework/BuildTestBase.php Assert text is not present in the error output of the most recent command.
BundleConstraintValidatorTest::assertValidation function core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php Executes the BundleConstraintValidator test for a given bundle.
CacheableMetadataCalculationTest::assertCacheableMetadataHasBeenCalculated function core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php Checks whether the view has calculated its cacheability metadata.
CacheContextsManager::assertValidTokens function core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Asserts the context tokens are valid.
CacheTestBase::assertCacheExists function core/modules/system/tests/src/Functional/Cache/CacheTestBase.php Asserts that a cache entry exists.
CacheTestBase::assertCacheRemoved function core/modules/system/tests/src/Functional/Cache/CacheTestBase.php Asserts that a cache entry has been removed.
CKEditor5TestBase::assertHtmlEsqueFieldValueEquals function core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php Decorates ::fieldValueEquals() to force DrupalCI to provide useful errors.
CKEditor5TestBase::assertNoRealtimeValidationErrors function core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php Checks that no real-time validation errors are present.
CKEditor5TestTrait::assertEditorButtonDisabled function core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php Asserts a CKEditor button is disabled.
CKEditor5TestTrait::assertEditorButtonEnabled function core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php Asserts a CKEditor button is enabled.
CKEditor5TestTrait::assertVisibleBalloon function core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php Asserts a particular balloon is visible.
ClassWriter::alterAssert function core/tests/Drupal/TestTools/PhpUnitCompatibility/ClassWriter.php Alters the Assert class.
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 @covers ::__construct
ConnectionTest::testIdentifierQuotesAssertString function core/tests/Drupal/Tests/Core/Database/ConnectionTest.php @covers ::__construct
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_drupal/tests/src/Kernel/Plugin/migrate/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.

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