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
UninstallDefaultContentTest::assertArticlesImported function core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/UninstallDefaultContentTest.php Assert articles are imported.
UninstallDefaultContentTest::assertImportedCustomBlock function core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/UninstallDefaultContentTest.php Assert block content are imported.
UninstallDefaultContentTest::assertRecipesImported function core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/UninstallDefaultContentTest.php Assert recipes are imported.
UpdateContribTest::assertCoreCompatibilityMessage function core/modules/update/tests/src/Functional/UpdateContribTest.php Asserts that a core compatibility message is correct for an update.
UpdateScriptTest::assertErrorOnUpdates function core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php Asserts errors are shown on the update and status report pages.
UpdateScriptTest::assertInstalledExtensionsConfig function core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php Asserts that an installed extension's config setting is correct.
UpdateScriptTest::assertUpdateWithNoErrors function core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php Asserts particular errors are not shown on update and status report pages.
UpdateSemverTestBaselineTrait::assertNoExtraVersion function core/modules/update/tests/src/Functional/UpdateSemverTestBaselineTrait.php Asserts update table when there is no extra version.
UpdateTestBase::assertSecurityUpdates function core/modules/update/tests/src/Functional/UpdateTestBase.php Asserts the expected security updates are displayed correctly on the page.
UpdateTestBase::assertUpdateTableElementContains function core/modules/update/tests/src/Functional/UpdateTestBase.php Asserts that the update table element HTML contains the specified text.
UpdateTestBase::assertUpdateTableElementNotContains function core/modules/update/tests/src/Functional/UpdateTestBase.php Asserts that the update table element HTML contains the specified text.
UpdateTestBase::assertUpdateTableTextContains function core/modules/update/tests/src/Functional/UpdateTestBase.php Asserts that the update table text contains the specified text.
UpdateTestBase::assertUpdateTableTextNotContains function core/modules/update/tests/src/Functional/UpdateTestBase.php Asserts that the update table text does not contain the specified text.
UpdateTestBase::assertVersionUpdateLinks function core/modules/update/tests/src/Functional/UpdateTestBase.php Asserts that an update version has the correct links.
Upgrade6Test::assertFollowUpMigrationResults function core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php Tests that follow-up migrations have been run successfully.
Upgrade7Test::assertFollowUpMigrationResults function core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php Tests that follow-up migrations have been run successfully.
UrlAlterFunctionalTest::assertUrlInboundAlter function core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php Assert that an inbound path is altered to an expected value.
UrlAlterFunctionalTest::assertUrlInboundAlter function core/modules/forum/tests/src/Functional/UrlAlterFunctionalTest.php Assert that an inbound path is altered to an expected value.
UrlAlterFunctionalTest::assertUrlOutboundAlter function core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php Assert that an outbound path is altered to an expected value.
UrlAlterFunctionalTest::assertUrlOutboundAlter function core/modules/forum/tests/src/Functional/UrlAlterFunctionalTest.php Assert that an outbound path is altered to an expected value.
UrlGeneratorTest::assertGenerateFromRoute function core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php Asserts \Drupal\Core\Routing\UrlGenerator::generateFromRoute()'s output.
UserAccessControlHandlerTest::assertFieldAccess function core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php Asserts correct field access grants for a field.
UserAccountFormFieldsTest::assertFieldOrder function core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php Asserts that the 'name' form element is directly before the 'pass' element.
UserLoginHttpTest::assertHttpResponse function core/modules/user/tests/src/Functional/UserLoginHttpTest.php Checks a response for status code and body.
UserLoginHttpTest::assertHttpResponseWithMessage function core/modules/user/tests/src/Functional/UserLoginHttpTest.php Checks a response for status code and message.
UserLoginTest::assertFailedLogin function core/modules/user/tests/src/Functional/UserLoginTest.php Make an unsuccessful login attempt.
UserPasswordResetTest::assertNoPasswordIpFlood function core/modules/user/tests/src/Functional/UserPasswordResetTest.php Makes assertions about a password reset not triggering IP flood control.
UserPasswordResetTest::assertNoValidPasswordReset function core/modules/user/tests/src/Functional/UserPasswordResetTest.php Helper function to make assertions about an invalid password reset.
UserPasswordResetTest::assertPasswordIpFlood function core/modules/user/tests/src/Functional/UserPasswordResetTest.php Makes assertions about a password reset triggering IP flood control.
UserPasswordResetTest::assertValidPasswordReset function core/modules/user/tests/src/Functional/UserPasswordResetTest.php Helper function to make assertions about a valid password reset.
UserRegistrationRestTest::assertNormalizationEdgeCases function core/modules/user/tests/src/Functional/UserRegistrationRestTest.php Asserts normalization-specific edge cases.
UserRegistrationTest::assertRegistrationFormCacheTagsWithUserFields function core/modules/user/tests/src/Functional/UserRegistrationTest.php Asserts the presence of cache tags on registration form with user fields.
UserResourceTestBase::assertRpcLogin function core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php Verifies that logging in with the given username and password works.
UserTest::assertRpcLogin function core/modules/jsonapi/tests/src/Functional/UserTest.php Verifies that logging in with the given username and password works.
UserValidationTest::assertAllowedValuesViolation function core/modules/user/tests/src/Kernel/UserValidationTest.php Verifies that an AllowedValues violation exists for the given field.
UserValidationTest::assertLengthViolation function core/modules/user/tests/src/Kernel/UserValidationTest.php Verifies that a length violation exists for the given field.
ValidationResultTest::assertResultValid function core/modules/package_manager/tests/src/Unit/ValidationResultTest.php Asserts a check result is valid.
ValidationTestTrait::assertValidationResultsEqual function core/modules/package_manager/tests/src/Traits/ValidationTestTrait.php Asserts two validation result sets are equal.
ValidKeysConstraintValidatorTest::assertValidationErrors function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Asserts a set of validation errors is raised when the config is validated.
VariationCacheTest::assertCacheBackendItem function core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php Asserts that an item was properly stored in the cache backend.
VariationCacheTest::assertVariationCacheItem function core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php Asserts that an item was properly stored in the variation cache.
VariationCacheTest::assertVariationCacheMiss function core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php Asserts that an item could not be retrieved from the variation cache.
ViewAjaxControllerTest::assertViewResultCommand function core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php Ensures that the main view content command is added.
ViewExecutableTest::assertViewDestroy function core/modules/views/tests/src/Kernel/ViewExecutableTest.php Asserts that expected view properties have been unset by destroy().
ViewResultAssertionTrait trait core/modules/views/src/Tests/ViewResultAssertionTrait.php Provides a class for assertions to check for the expected result of a View.
ViewResultAssertionTrait.php file core/modules/views/src/Tests/ViewResultAssertionTrait.php
ViewResultAssertionTrait::assertIdenticalResultset function core/modules/views/src/Tests/ViewResultAssertionTrait.php Verifies that a result set returned by a View matches expected values.
ViewResultAssertionTrait::assertIdenticalResultsetHelper function core/modules/views/src/Tests/ViewResultAssertionTrait.php Performs View result assertions.
ViewResultAssertionTrait::assertNotIdenticalResultset function core/modules/views/src/Tests/ViewResultAssertionTrait.php Verifies that a result set returned by a View differs from certain values.
ViewsEntitySchemaSubscriberIntegrationTest::assertUpdatedViews function core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php Checks that the passed-in view IDs were the only ones updated.

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