Search for assert

  1. Search 7.x for assert
  2. Search 9.5.x for assert
  3. Search 10.3.x for assert
  4. Search 11.x for assert
  5. Other projects
Title Object type File name Summary
AssertMailTrait::assertMailPattern function core/lib/Drupal/Core/Test/AssertMailTrait.php Asserts that the most recently sent email message has the pattern in it.
AssertMailTrait::assertMailString function core/lib/Drupal/Core/Test/AssertMailTrait.php Asserts that the most recently sent email message has the string in it.
AssertMailTrait::getMails function core/lib/Drupal/Core/Test/AssertMailTrait.php Gets an array containing all emails sent during this test case.
AssertMailTrait::verboseEmail function core/lib/Drupal/Core/Test/AssertMailTrait.php Outputs to verbose the most recent $count emails sent.
AssertMailTraitTest class core/tests/Drupal/KernelTests/Core/Test/AssertMailTraitTest.php Tests \Drupal\Core\Test\AssertMailTrait works.
AssertMailTraitTest.php file core/tests/Drupal/KernelTests/Core/Test/AssertMailTraitTest.php
AssertMailTraitTest::testAssertMailTrait function core/tests/Drupal/KernelTests/Core/Test/AssertMailTraitTest.php Tests that the maintenance theme initializes the theme and its base themes.
AssertMenuActiveTrailTrait trait core/modules/system/src/Tests/Menu/AssertMenuActiveTrailTrait.php Provides test assertions for verifying the active menu trail.
AssertMenuActiveTrailTrait trait core/modules/system/tests/src/Functional/Menu/AssertMenuActiveTrailTrait.php Provides test assertions for verifying the active menu trail.
AssertMenuActiveTrailTrait.php file core/modules/system/src/Tests/Menu/AssertMenuActiveTrailTrait.php
AssertMenuActiveTrailTrait.php file core/modules/system/tests/src/Functional/Menu/AssertMenuActiveTrailTrait.php
AssertMenuActiveTrailTrait::assertMenuActiveTrail function core/modules/system/src/Tests/Menu/AssertMenuActiveTrailTrait.php Assert that active trail exists in a menu tree output.
AssertMenuActiveTrailTrait::assertMenuActiveTrail function core/modules/system/tests/src/Functional/Menu/AssertMenuActiveTrailTrait.php Assert that active trail exists in a menu tree output.
AssertPageCacheContextsAndTagsTrait trait core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Provides test assertions for testing page-level cache contexts & tags.
AssertPageCacheContextsAndTagsTrait trait core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Provides test assertions for testing page-level cache contexts & tags.
AssertPageCacheContextsAndTagsTrait.php file core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php
AssertPageCacheContextsAndTagsTrait.php file core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php
AssertPageCacheContextsAndTagsTrait::assertCacheContext function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts whether an expected cache context was present in the last response.
AssertPageCacheContextsAndTagsTrait::assertCacheContext function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts whether an expected cache context was present in the last response.
AssertPageCacheContextsAndTagsTrait::assertCacheContexts function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache contexts are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertCacheContexts function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache contexts are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertCacheMaxAge function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts the max age header.
AssertPageCacheContextsAndTagsTrait::assertCacheMaxAge function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts the max age header.
AssertPageCacheContextsAndTagsTrait::assertCacheTags function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache tags are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertCacheTags function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache tags are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertNoCacheContext function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts that a cache context was not present in the last response.
AssertPageCacheContextsAndTagsTrait::assertNoCacheContext function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts that a cache context was not present in the last response.
AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts page cache miss, then hit for the given URL; checks cache headers.
AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts page cache miss, then hit for the given URL; checks cache headers.
AssertPageCacheContextsAndTagsTrait::debugCacheTags function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Provides debug information for cache tags.
AssertPageCacheContextsAndTagsTrait::enablePageCaching function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Enables page caching.
AssertPageCacheContextsAndTagsTrait::enablePageCaching function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Enables page caching.
AssertPageCacheContextsAndTagsTrait::getCacheHeaderValues function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Gets a specific header value as array.
AssertPageCacheContextsAndTagsTrait::getCacheHeaderValues function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Gets a specific header value as array.
AssertUtilsTrait trait core/tests/Drupal/Tests/Composer/Plugin/Scaffold/AssertUtilsTrait.php Convenience class for creating fixtures.
AssertUtilsTrait.php file core/tests/Drupal/Tests/Composer/Plugin/Scaffold/AssertUtilsTrait.php
AssertUtilsTrait::assertScaffoldedFile function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/AssertUtilsTrait.php Asserts that a given file exists and is/is not a symlink.
AssertUtilsTrait::assertScaffoldedFileDoesNotContain function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/AssertUtilsTrait.php Asserts that a file does not exist or exists and does not contain a value.
AssertViewsCacheTagsTrait trait core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
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.
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.
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.

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