Search for assert

  1. Search 7.x for assert
  2. Search 8.9.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
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/rest/tests/src/Functional/ResourceTestBase.php Asserts that a resource error response has the given message.
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.
RestRegisterUserTest::assertNormalizationEdgeCases function core/modules/hal/tests/src/Functional/user/RestRegisterUserTest.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.
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::assertFieldAdditionRemoval function core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php Asserts that a given field can be added and removed from a table.
SchemaTest::assertFieldChange function core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php Asserts that a field can be changed from one spec to another.
SchemaTest::assertFieldCharacteristics function core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php Asserts that a newly added field has the correct characteristics.
SearchIntegrationTest::assertOneLink function core/modules/views/tests/src/Functional/SearchIntegrationTest.php Asserts that exactly one link exists with the given text.
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.
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 SimpleTest browser sent a session cookie.
SessionTest::assertSessionEmpty function core/modules/system/tests/src/Functional/Session/SessionTest.php Assert whether $_SESSION is empty at the beginning of the request.
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.
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.
TagsTest::assertTags function core/tests/Drupal/Tests/Core/Common/TagsTest.php Helper function: asserts that the ending array of tags is what we wanted.
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.
TaxonomyTermFilterDepthTest::assertTermWithDepthResult function core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermFilterDepthTest.php Changes the tid filter to given term and depth.
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.

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