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 11.x for assert
  5. Other projects
Title Object type File name Summary
SchemaIntrospectionTestTrait::assertIndexOnColumns function core/tests/Drupal/Tests/Core/Database/SchemaIntrospectionTestTrait.php Checks that an index covering exactly the given column names exists.
SchemaIntrospectionTestTrait::assertNoIndexOnColumns function core/tests/Drupal/Tests/Core/Database/SchemaIntrospectionTestTrait.php Checks that an index covering exactly the given column names doesn't exist.
SchemaTest::assertCollation function core/modules/mysql/tests/src/Kernel/mysql/SchemaTest.php Asserts that fields have the correct collation, if supported.
SearchAdminThemeTest::assertAdminTheme function core/modules/search/tests/src/Functional/SearchAdminThemeTest.php Asserts whether an administrative theme's used for the loaded page.
SearchCommentTest::assertCommentAccess function core/modules/search/tests/src/Functional/SearchCommentTest.php Update search index and search for comment.
SearchConfigSettingsFormTest::assertDefaultSearch function core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php Checks that the default search page matches expectations.
SearchIntegrationTest::assertOneLink function core/modules/views/tests/src/Functional/SearchIntegrationTest.php Asserts that exactly one link exists with the given text.
SearchMultilingualEntityTest::assertDatabaseCounts function core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php Checks actual database counts of items in the search index.
SearchMultilingualEntityTest::assertIndexCounts function core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php Verifies the indexing status counts.
SectionListTestBase::assertSections function core/modules/layout_builder/tests/src/Kernel/SectionListTestBase.php Asserts that the field list has the expected sections.
SectionTest::assertComponents function core/modules/layout_builder/tests/src/Unit/SectionTest.php Asserts that the section has the expected components.
SecurityAdvisoriesFetcherTest::assertServiceAdvisoryLoggedErrors function core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php Asserts the expected error messages were logged.
SecurityAdvisoryTest::assertAdminPageLinks function core/modules/system/tests/src/Functional/SecurityAdvisories/SecurityAdvisoryTest.php Asserts the correct links appear on an admin page.
SecurityAdvisoryTest::assertAdvisoriesNotDisplayed function core/modules/system/tests/src/Functional/SecurityAdvisories/SecurityAdvisoryTest.php Asserts that security advisory links are not shown on admin pages.
SecurityAdvisoryTest::assertServiceAdvisoryLoggedErrors function core/modules/system/tests/src/Functional/SecurityAdvisories/SecurityAdvisoryTest.php Asserts the expected error messages were logged on the system logger.
SecurityAdvisoryTest::assertStatusReportLinks function core/modules/system/tests/src/Functional/SecurityAdvisories/SecurityAdvisoryTest.php Asserts the correct links appear on the status report page.
SelectionTest::assertResults function core/modules/field/tests/src/Kernel/EntityReference/Views/SelectionTest.php Confirm the expected results are returned.
SessionAuthenticationTest::assertSessionData function core/modules/system/tests/src/Functional/Session/SessionAuthenticationTest.php Checks the session data returned by the session test routes.
SessionExistsCacheContextTest::assertSessionCookieOnClient function core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php Asserts whether a session cookie is present on the client or not.
SessionHttpsTest::assertSessionIds function core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php Tests that there exists a session with two specific session IDs.
SessionTest::assertSessionCookie function core/modules/system/tests/src/Functional/Session/SessionTest.php Assert whether the test browser sent a session cookie.
SessionTest::assertSessionEmpty function core/modules/system/tests/src/Functional/Session/SessionTest.php Assert whether the session is empty at the beginning of the request.
SettingsTrayTestBase::assertEditModeDisabled function core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php Assert that edit mode has been properly disabled.
SettingsTrayTestBase::assertEditModeEnabled function core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php Assert that edit mode has been properly enabled.
SettingsTrayTestBase::assertOffCanvasBlockFormIsValid function core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php Asserts that Off-Canvas block form is valid.
ShortcutLinksTest::assertShortcutQuickLink function core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php Passes if a shortcut quick link with the specified label is found.
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.
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.
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.

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