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. Other projects
Title Object type File name Summary
SortArrayTest::assertBothNegativePositiveOrZero function core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php Asserts that numbers are either both negative, both positive or both zero.
SortTest::assertSorted function core/tests/Drupal/Tests/PhpCs/SortTest.php A helper method to assert that an input array is sorted.
StageOwnershipTest::assertOwnershipIsEnforced function core/modules/package_manager/tests/src/Kernel/StageOwnershipTest.php Asserts that ownership is enforced across stage directories.
StandardJavascriptTest::assertBigPipePlaceholderReplacementCount function core/profiles/standard/tests/src/FunctionalJavascript/StandardJavascriptTest.php Asserts the number of BigPipe placeholders that are replaced on the page.
StandardPerformanceTest::assertNoJavaScript function core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php Passes if no JavaScript is found on the page.
StyleGridTest::assertGrid function core/modules/views/tests/src/Kernel/Plugin/StyleGridTest.php Generates a grid and asserts that it is displaying correctly.
SystemTestController::statusMessagesForAssertions function core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php Sets messages for testing the WebAssert methods related to messages.
TableDragTest::assertDraggableTable function core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php Asserts the whole structure of the draggable test table.
TableDragTest::assertKeyboardAccessibility function core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php Asserts accessibility through keyboard of a test draggable table.
TableDragTest::assertOrder function core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php Asserts that several pieces of markup are in a given order in the page.
TableDragTest::assertTableRow function core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php Asserts the values of a draggable row.
TableTest::assertTableStructureInEditorData function core/modules/ckeditor5/tests/src/FunctionalJavascript/TableTest.php Confirms the structure of the table within the editor data.
TableTest::assertTableStructureInRenderedPage function core/modules/ckeditor5/tests/src/FunctionalJavascript/TableTest.php Confirms the saved page has the expected table structure.
TaxonomyFieldFilterTest::assertPageCounts function core/modules/taxonomy/tests/src/Functional/Views/TaxonomyFieldFilterTest.php Asserts that the given taxonomy translation counts are correct.
TaxonomyQueryAlterTest::assertQueryTagTestResult function core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php Verifies invocation of the hooks in the test module.
TaxonomyTermArgumentDepthTest::assertTermWithDepthResult function core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTermArgumentDepthTest.php Asserts the result of the view for the given arguments.
TaxonomyTermFilterDepthTest::assertTermWithDepthResult function core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTermFilterDepthTest.php Asserts the result of the view for the given filter configuration.
TemplateProjectTestBase::assertAppliedChangesWereLogged function core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php Asserts that changes applied during the stage life cycle were logged.
TemplateProjectTestBase::assertExpectedStageEventsFired function core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php Asserts stage events were fired in a specific order.
TemplateProjectTestBase::assertRequestedChangesWereLogged function core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php Asserts changes requested during the stage life cycle were logged.
TermAccessTest::assertTermAccess function core/modules/taxonomy/tests/src/Functional/TermAccessTest.php Checks access on taxonomy term.
TermParentsTest::assertParentOption function core/modules/taxonomy/tests/src/Functional/TermParentsTest.php Asserts that an option in the parent form element of terms exists.
TermParentsTest::assertParentsUnchanged function core/modules/taxonomy/tests/src/Functional/TermParentsTest.php Asserts that the parents of the term have not changed after saving.
TestMultiWidthLayoutsTest::assertWidthClassApplied function core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php Asserts the width class is applied to the first section.
TextareaWithSummaryTest::assertSummaryToggle function core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php Helper to test toggling the summary area.
TextSummaryTest::assertTextSummary function core/modules/text/tests/src/Kernel/TextSummaryTest.php Calls text_summary() and asserts that the expected teaser is returned.
ThemeTest::assertThemeIncompatibleText function core/modules/system/tests/src/Functional/System/ThemeTest.php Asserts that expected incompatibility text is displayed for a theme.
ThemeUiTest::assertUninstallableTheme function core/modules/system/tests/src/Functional/Theme/ThemeUiTest.php Checks related to uninstallable themes due to module dependencies.
TimezoneTest::assertDateTimezonePropertyProcessed function core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php Asserts that elements set #date_timezone correctly.
TimezoneTest::assertTimesUnderstoodCorrectly function core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php Asserts that elements interpret dates using the expected time zones.
TipPluginBaseTest::testGetLocationAssertion function core/modules/tour/tests/src/Unit/TipPluginBaseTest.php @covers ::getLocation
ToolbarAdminMenuTest::assertDifferentHash function core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php Checks the subtree hash of the current page with that of the previous page.
ToolbarCacheContextsTest::assertToolbarCacheContexts function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Tests that cache contexts are applied for both users.
ToolkitGdTest::assertColorsAreEqual function core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php Assert two colors are equal by RGBA, net of full transparency.
ToolkitTestTrait::assertImageEffect function core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php Asserts the effect processing of an image effect plugin.
ToolkitTestTrait::assertToolkitOperationsCalled function core/tests/Drupal/Tests/Traits/Core/Image/ToolkitTestTrait.php Assert that all of the specified image toolkit operations were called once.
TourTestBase::assertTourTips function core/modules/tour/tests/src/Functional/TourTestBase.php Asserts the presence of page elements for tour tips.
TrackChangesTest::assertTermDoesNotExist function core/modules/migrate/tests/src/Kernel/TrackChangesTest.php Assert that term with given title does not exist.
TrackChangesTest::assertTermExists function core/modules/migrate/tests/src/Kernel/TrackChangesTest.php Assert that term with given name exists.
TrackerTest::assertHistoryMetadata function core/modules/tracker/tests/src/Functional/TrackerTest.php Passes if the appropriate history metadata exists.
TranslatableMarkupTest::testIsStringAssertion function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php @covers ::__construct
TranslatableMarkupTest::testIsStringAssertionWithFormattableMarkup function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php @covers ::__construct
TwigDeprecationsTest::assertRendered function core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php Assert that 'theme_test_deprecations_preprocess' renders expected text.
TwigNamespaceTest::assertTwigTemplate function core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php Checks to see if a value is a twig template.
TwigRegistryLoaderTest::assertTwigTemplate function core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php Checks to see if a value is a Twig template.
TwigTransTest::assertTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Asserts Twig trans tags.
UiHelperTrait::assertSession function core/tests/Drupal/Tests/UiHelperTrait.php Returns WebAssert object.
UncaughtExceptionTest::assertErrorLogged function core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php Asserts that a specific error has been logged to the PHP error log.
UncaughtExceptionTest::assertNoErrorsLogged function core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php Asserts that no errors have been logged to the PHP error.log thus far.
UninstallDefaultContentTest::assertArticlesImported function core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/UninstallDefaultContentTest.php Assert articles are imported.

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