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
BlockViewBuilderTest::assertBlockRenderedWithExpectedCacheability function core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php Asserts that a block is built/rendered/cached with expected cacheability.
BookJavascriptTest::assertOrderInPage function core/modules/book/tests/src/FunctionalJavascript/BookJavascriptTest.php Asserts that several pieces of markup are in a given order in the page.
BookMultilingualTest::assertBookItemIsCorrectlyTranslated function core/modules/book/tests/src/Kernel/BookMultilingualTest.php Asserts a book item is correctly translated.
BookMultilingualTest::assertNodeLinkIsCorrectlyTranslated function core/modules/book/tests/src/Kernel/BookMultilingualTest.php Asserts a node link is correctly translated.
BookMultilingualTest::assertToCEntryIsCorrectlyTranslated function core/modules/book/tests/src/Kernel/BookMultilingualTest.php Asserts one entry in the table of contents is correct.
BreadcrumbTest::testAssertBreadcrumbTrait function core/modules/system/tests/src/Functional/Menu/BreadcrumbTest.php Tests AssertBreadcrumbTrait works as expected.
BrowserTestBaseTest::testFieldAssertsForCheckbox function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests legacy field asserts for checkbox field type.
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.

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