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
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.
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.

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