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
RendererTestBase::assertRenderCacheItem function core/tests/Drupal/Tests/Core/Render/RendererTestBase.php Asserts a render cache item.
RequestSanitizerTest::assertError function core/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php Asserts that the expected error has been logged.
RequirementsPageTrait::assertErrorSummaries function core/tests/Drupal/Tests/RequirementsPageTrait.php Asserts the given error summaries are present on the page.
RequirementsPageTrait::assertRequirementSummaries function core/tests/Drupal/Tests/RequirementsPageTrait.php Asserts the given requirements section summaries are present on the page.
RequirementsPageTrait::assertWarningSummaries function core/tests/Drupal/Tests/RequirementsPageTrait.php Asserts the given warning summaries are present on the page.
ResourceTestBase::assertAuthenticationEdgeCases function core/modules/rest/tests/src/Functional/ResourceTestBase.php Asserts authentication provider-specific edge cases.
ResourceTestBase::assertNormalizationEdgeCases function core/modules/rest/tests/src/Functional/ResourceTestBase.php Asserts normalization-specific edge cases.
ResourceTestBase::assertResourceErrorResponse function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Asserts that a resource error response has the given message.
ResourceTestBase::assertResourceErrorResponse function core/modules/rest/tests/src/Functional/ResourceTestBase.php Asserts that a resource error response has the given message.
ResourceTestBase::assertResourceResponse function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Asserts that a resource response has the given status code and body.
ResourceTestBase::assertResourceResponse function core/modules/rest/tests/src/Functional/ResourceTestBase.php Asserts that a resource response has the given status code and body.
ResourceTestBase::assertResponseWhenMissingAuthentication function core/modules/rest/tests/src/Functional/ResourceTestBase.php Verifies the error response in case of missing authentication.
ResourceTestBase::assertSameDocument function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Asserts that an expected document matches the response body.
ResponsiveImageFieldDisplayTest::assertResponsiveImageFieldFormattersLink function core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php Tests responsive image formatters linked to the file or node.
RestJsonApiUnsupported::assertNormalizationEdgeCases function core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php Asserts normalization-specific edge cases.
RevisionableContentEntityBaseTest::assertItemsTableCount function core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php Asserts the amount of items on entity related tables.
RollbackTest::assertCheckpointsExist function core/tests/Drupal/FunctionalTests/Core/Recipe/RollbackTest.php Asserts that the current set of checkpoints matches the given labels.
RowEntityRenderersTest::assertTranslations function core/modules/views/tests/src/Kernel/Entity/RowEntityRenderersTest.php Checks that the view results match the expected values.
ScaffoldTest::assertAutoloadFileCorrect function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php Assert that the autoload file was scaffolded and contains correct path.
ScaffoldTest::assertCommonDrupalAssetsWereScaffolded function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php Asserts that the scaffold files from drupal/assets are placed as expected.
ScaffoldTest::assertDefaultSettingsFromScaffoldOverride function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php Asserts that the default settings file was overridden by the test.
ScaffoldTest::assertHtaccessExcluded function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php Asserts that the .htaccess file was excluded by the test.
SchemaCheckTestTrait::assertConfigSchema function core/tests/Drupal/Tests/SchemaCheckTestTrait.php Asserts the TypedConfigManager has a valid schema for the configuration.
SchemaCheckTestTrait::assertConfigSchemaByName function core/tests/Drupal/Tests/SchemaCheckTestTrait.php Asserts configuration, specified by name, has a valid schema.
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.

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