Search for assert
- Search 7.x for assert
- Search 9.5.x for assert
- Search 8.9.x for assert
- Search 10.3.x for assert
- Other projects
| Title | Object type | File name | Summary |
|---|---|---|---|
| AssertMenuActiveTrailTrait.php | file | core/ |
|
| AssertMenuActiveTrailTrait::assertMenuActiveTrail | function | core/ |
Assert that active trail exists in a menu tree output. |
| AssertPageCacheContextsAndTagsTrait | trait | core/ |
Provides test assertions for testing page-level cache contexts & tags. |
| AssertPageCacheContextsAndTagsTrait.php | file | core/ |
|
| AssertPageCacheContextsAndTagsTrait::assertCacheContext | function | core/ |
Asserts whether an expected cache context was present in the last response. |
| AssertPageCacheContextsAndTagsTrait::assertCacheContexts | function | core/ |
Ensures that some cache contexts are present in the current response. |
| AssertPageCacheContextsAndTagsTrait::assertCacheMaxAge | function | core/ |
Asserts the max age header. |
| AssertPageCacheContextsAndTagsTrait::assertCacheTags | function | core/ |
Ensures that some cache tags are present in the current response. |
| AssertPageCacheContextsAndTagsTrait::assertNoCacheContext | function | core/ |
Asserts that a cache context was not present in the last response. |
| AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags | function | core/ |
Asserts page cache miss, then hit for the given URL; checks cache headers. |
| AssertPageCacheContextsAndTagsTrait::enablePageCaching | function | core/ |
Enables page caching. |
| AssertPageCacheContextsAndTagsTrait::getCacheHeaderValues | function | core/ |
Gets a specific header value as array. |
| AssertPreconditionsTrait | trait | core/ |
Asserts preconditions for tests to function properly. |
| AssertPreconditionsTrait.php | file | core/ |
|
| AssertPreconditionsTrait::assertNoFailureMarker | function | core/ |
Asserts that there is no failure marker present. |
| AssertPreconditionsTrait::failIfUnmetPreConditions | function | core/ |
Asserts universal test preconditions before any setup is done. |
| AssertPreconditionsTrait::getProjectRoot | function | core/ |
Returns the absolute path of the project root. |
| AssertPreconditionsTrait::setUpBeforeClass | function | core/ |
Invokes the test preconditions assertion before the first test is run. |
| AssertPreconditionsTrait::tearDown | function | core/ |
Invokes the test preconditions assertion after each test run. |
| AssertUtilsTrait | trait | core/ |
Convenience class for creating fixtures. |
| AssertUtilsTrait.php | file | core/ |
|
| AssertUtilsTrait::assertScaffoldedFile | function | core/ |
Asserts that a given file exists and is/is not a symlink. |
| AssertUtilsTrait::assertScaffoldedFileDoesNotContain | function | core/ |
Asserts that a file does not exist or exists and does not contain a value. |
| AssertViewsCacheTagsTrait | trait | core/ |
Provides assert methods for testing Views cache tags. |
| AssertViewsCacheTagsTrait.php | file | core/ |
|
| AssertViewsCacheTagsTrait::assertViewsCacheTags | function | core/ |
Asserts a view's result & render cache items' cache tags. |
| AssertViewsCacheTagsTrait::assertViewsCacheTagsFromStaticRenderArray | function | core/ |
Asserts a view's result & render cache items' cache tags. |
| AssetOptimizationTest::assertAggregate | function | core/ |
Asserts the aggregate header. |
| AssetOptimizationTest::assertInvalidAggregates | function | core/ |
Asserts the aggregate when it is invalid. |
| AttributeTest::assertClass | function | core/ |
Checks that the given CSS class is present in the given HTML snippet. |
| AttributeTest::assertID | function | core/ |
Checks that the given CSS ID is present in the given HTML snippet. |
| AttributeTest::assertNoClass | function | core/ |
Checks that the given CSS class is not present in the given HTML snippet. |
| AttributeTest::assertNoID | function | core/ |
Checks that the given CSS ID is not present in the given HTML snippet. |
| BaseFileConstraintValidator::assertValueIsFile | function | core/ |
Checks the value is of type FileInterface. |
| BasicAuthResourceTestTrait::assertAuthenticationEdgeCases | function | core/ |
|
| BasicAuthResourceTestTrait::assertResponseWhenMissingAuthentication | function | core/ |
|
| BigPipeTest::assertBigPipeNoJsCookieExists | function | core/ |
Asserts whether a BigPipe no-JS cookie exists or not. |
| BigPipeTest::assertBigPipeNoJsMetaRefreshRedirect | function | core/ |
Calls ::performMetaRefresh() and asserts the responses. |
| BigPipeTest::assertBigPipeNoJsPlaceholders | function | core/ |
Asserts expected BigPipe no-JS placeholders are present and replaced. |
| BigPipeTest::assertBigPipePlaceholders | function | core/ |
Asserts expected BigPipe placeholders are present and replaced. |
| BigPipeTest::assertBigPipeResponseHeadersPresent | function | core/ |
@internal |
| BigPipeTest::assertCookieExists | function | core/ |
Asserts whether a cookie exists on the client or not. |
| BigPipeTest::assertSessionCookieExists | function | core/ |
Asserts whether a session cookie exists or not. |
| BigPipeTest::assertSetsEqual | function | core/ |
Asserts whether arrays A and B are equal, when treated as sets. |
| BlockContentFieldFilterTest::assertPageCounts | function | core/ |
Asserts that the given block_content translation counts are correct. |
| BlockContentIntegrationTest::assertIds | function | core/ |
Ensures that a list of block_contents appear on the page. |
| BlockFilterTest::assertAnnounceContains | function | core/ |
Checks for inclusion of text in #drupal-live-announce. |
| BlockFilterTest::assertAnnounceContains | function | core/ |
Checks for inclusion of text in #drupal-live-announce. |
| BlockFormMessagesTest::assertMessagesDisplayed | function | core/ |
Asserts that the validation messages are shown correctly. |
| BlockViewBuilderTest::assertBlockRenderedWithExpectedCacheability | function | core/ |
Asserts that a block is built/rendered/cached with expected cacheability. |
Pagination
- Previous page
- Page 3
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.