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
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
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.
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.
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.
BreadcrumbTest::testAssertBreadcrumbTrait function core/modules/system/tests/src/Functional/Menu/BreadcrumbTest.php Tests AssertBreadcrumbTrait works as expected.
BrowserTestBaseTest::testEscapingAssertions function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests assertEscaped() and assertUnescaped().
BrowserTestBaseTest::testFieldAssertsForButton function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests legacy field asserts for button field type.
BrowserTestBaseTest::testFieldAssertsForCheckbox function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests legacy field asserts for checkbox field type.
BrowserTestBaseTest::testFieldAssertsForOptions function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests legacy field asserts for options field type.
BrowserTestBaseTest::testFieldAssertsForTextfields function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests legacy field asserts using textfields.
BrowserTestBaseTest::testTextAsserts function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests legacy text asserts.
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.
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/src/Tests/Cache/CacheTestBase.php Asserts that a cache entry exists.
CacheTestBase::assertCacheExists function core/modules/system/tests/src/Functional/Cache/CacheTestBase.php Asserts that a cache entry exists.
CacheTestBase::assertCacheRemoved function core/modules/system/src/Tests/Cache/CacheTestBase.php Asserts that a cache entry has been removed.
CacheTestBase::assertCacheRemoved function core/modules/system/tests/src/Functional/Cache/CacheTestBase.php Asserts that a cache entry has been removed.
CKEditorIntegrationTest::assertContextMenuItemExists function core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php Asserts that a context menu item exists by aria-label attribute.
CKEditorIntegrationTest::assertContextMenuItemNotExists function core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php Asserts that a context menu item does not exist by aria-label attribute.
CKEditorIntegrationTest::assertSourceAttributeSame function core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php Verifies value of an attribute on the downcast <drupal-media> element.
CKEditorTest::assertCKEditorLanguage function core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php Assert that CKEditor picks the expected language when French is default.
CKEditorTestTrait::assertEditorButtonDisabled function core/modules/ckeditor/tests/src/Traits/CKEditorTestTrait.php Asserts a CKEditor button is disabled.
CKEditorTestTrait::assertEditorButtonEnabled function core/modules/ckeditor/tests/src/Traits/CKEditorTestTrait.php Asserts a CKEditor button is enabled.
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.
ConfigAfterInstallerTestBase::assertInstalledConfig function core/modules/system/src/Tests/Installer/ConfigAfterInstallerTestBase.php Ensures that all the installed config looks like the exported one.
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 a diff'd YAML file.

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