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
AssertViewsCacheTagsTrait trait core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php Provides assert methods for testing Views cache tags.
AssertViewsCacheTagsTrait.php file core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
AssertViewsCacheTagsTrait::assertViewsCacheTags function core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php Asserts a view's result & render cache items' cache tags.
AssertViewsCacheTagsTrait::assertViewsCacheTagsFromStaticRenderArray function core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php Asserts a view's result & render cache items' cache tags.
AssetOptimizationTest::assertAggregate function core/tests/Drupal/FunctionalTests/Asset/AssetOptimizationTest.php Asserts the aggregate header.
AssetOptimizationTest::assertInvalidAggregates function core/tests/Drupal/FunctionalTests/Asset/AssetOptimizationTest.php Asserts the aggregate when it is invalid.
AttributeTest::assertClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS class is present in the given HTML snippet.
AttributeTest::assertID function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS ID is present in the given HTML snippet.
AttributeTest::assertNoClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS class is not present in the given HTML snippet.
AttributeTest::assertNoID function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS ID is not present in the given HTML snippet.
BaseFileConstraintValidator::assertValueIsFile function core/modules/file/src/Plugin/Validation/Constraint/BaseFileConstraintValidator.php Checks the value is of type FileInterface.
BasicAuthResourceTestTrait::assertAuthenticationEdgeCases function core/modules/rest/tests/src/Functional/BasicAuthResourceTestTrait.php
BasicAuthResourceTestTrait::assertResponseWhenMissingAuthentication function core/modules/rest/tests/src/Functional/BasicAuthResourceTestTrait.php
BigPipeTest::assertBigPipeNoJsCookieExists function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Asserts whether a BigPipe no-JS cookie exists or not.
BigPipeTest::assertBigPipeNoJsMetaRefreshRedirect function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Calls ::performMetaRefresh() and asserts the responses.
BigPipeTest::assertBigPipeNoJsPlaceholders function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Asserts expected BigPipe no-JS placeholders are present and replaced.
BigPipeTest::assertBigPipePlaceholders function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Asserts expected BigPipe placeholders are present and replaced.
BigPipeTest::assertBigPipeResponseHeadersPresent function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php @internal
BigPipeTest::assertCookieExists function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Asserts whether a cookie exists on the client or not.
BigPipeTest::assertSessionCookieExists function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Asserts whether a session cookie exists or not.
BigPipeTest::assertSetsEqual function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Asserts whether arrays A and B are equal, when treated as sets.
BlockContentFieldFilterTest::assertPageCounts function core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php Asserts that the given block_content translation counts are correct.
BlockContentIntegrationTest::assertIds function core/modules/block_content/tests/src/Functional/Views/BlockContentIntegrationTest.php Ensures that a list of block_contents appear on the page.
BlockFilterTest::assertAnnounceContains function core/modules/layout_builder/tests/src/FunctionalJavascript/BlockFilterTest.php Checks for inclusion of text in #drupal-live-announce.
BlockFilterTest::assertAnnounceContains function core/modules/block/tests/src/FunctionalJavascript/BlockFilterTest.php Checks for inclusion of text in #drupal-live-announce.
BlockFormMessagesTest::assertMessagesDisplayed function core/modules/layout_builder/tests/src/FunctionalJavascript/BlockFormMessagesTest.php Asserts that the validation messages are shown correctly.
BlockViewBuilderTest::assertBlockRenderedWithExpectedCacheability function core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php Asserts that a block is built/rendered/cached with expected cacheability.
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.
Callbacks::advancedCommandsAnnounceAssertiveCallback function core/modules/system/tests/modules/ajax_forms_test/src/Callbacks.php Ajax form callback: Selects 'announce' with 'assertive' priority.
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::assertBalloonClosed function core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php Asserts that the active balloon is closed.
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.

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