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
- Search 11.x for assert
- Other projects
| Title | Object type | File name | Summary |
|---|---|---|---|
| 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. |
| BreadcrumbTest::testAssertBreadcrumbTrait | function | core/ |
Tests AssertBreadcrumbTrait works as expected. |
| BrowserTestBaseTest::testFieldAssertsForCheckbox | function | core/ |
Tests legacy field asserts for checkbox field type. |
| BrowserTestBaseTest::testFieldAssertsForTextfields | function | core/ |
Tests field asserts using textfields. |
| BrowserTestBaseTest::testXpathAsserts | function | core/ |
Tests legacy field asserts which use xpath directly. |
| BrowserWithJavascriptTest::testAssertJsCondition | function | core/ |
|
| BrowserWithJavascriptTest::testEscapingAssertions | function | core/ |
Tests assertEscaped() and assertUnescaped(). |
| BuildTestBase::assertCommandExitCode | function | core/ |
Asserts that the last command returned the specified exit code. |
| BuildTestBase::assertCommandOutputContains | function | core/ |
Assert that text is present in the output of the most recent command. |
| BuildTestBase::assertCommandSuccessful | function | core/ |
Asserts that the last command ran without error. |
| BuildTestBase::assertDrupalVisit | function | core/ |
Helper function to assert that the last visit was a Drupal site. |
| BuildTestBase::assertErrorOutputContains | function | core/ |
Assert that text is present in the error output of the most recent command. |
| BuildTestBase::assertErrorOutputNotContains | function | core/ |
Assert text is not present in the error output of the most recent command. |
| BundleConstraintValidatorTest::assertValidation | function | core/ |
Executes the BundleConstraintValidator test for a given bundle. |
| CacheableMetadataCalculationTest::assertCacheableMetadataHasBeenCalculated | function | core/ |
Checks whether the view has calculated its cacheability metadata. |
| CacheContextsManager::assertValidTokens | function | core/ |
Asserts the context tokens are valid. |
| CacheTestBase::assertCacheExists | function | core/ |
Asserts that a cache entry exists. |
| CacheTestBase::assertCacheRemoved | function | core/ |
Asserts that a cache entry has been removed. |
| Callbacks::advancedCommandsAnnounceAssertiveCallback | function | core/ |
Ajax form callback: Selects 'announce' with 'assertive' priority. |
| CKEditor5TestBase::assertHtmlEsqueFieldValueEquals | function | core/ |
Decorates ::fieldValueEquals() to force DrupalCI to provide useful errors. |
| CKEditor5TestBase::assertNoRealtimeValidationErrors | function | core/ |
Checks that no real-time validation errors are present. |
| CKEditor5TestTrait::assertBalloonClosed | function | core/ |
Asserts that the active balloon is closed. |
| CKEditor5TestTrait::assertEditorButtonDisabled | function | core/ |
Asserts a CKEditor button is disabled. |
| CKEditor5TestTrait::assertEditorButtonEnabled | function | core/ |
Asserts a CKEditor button is enabled. |
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.