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
UrlAlterFunctionalTest::assertUrlInboundAlter function core/modules/path_alias/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.
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.
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.
ViewsModerationStateFilterTest::assertFilterStates function core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php Assert the states which appear in the filter.
ViewsModerationStateFilterTest::assertNodesWithFilters function core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateFilterTest.php Assert the nodes appear when the test view is executed.
ViewsModerationStateFilterTest::assertPluginStates function core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateFilterTest.php Assert the plugin states.
ViewsModerationStateFilterTest::assertWorkflowDependencies function core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php Asserts the views dependencies on workflow config entities.
ViewsModerationStateFilterTest::executeAndAssertIdenticalResultset function core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php Execute a view and assert the expected results.
ViewsModerationStateSortTest::assertSortResults function core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateSortTest.php Assert the order of a views sort result.
WebAssert class core/tests/Drupal/Tests/WebAssert.php Defines a class with methods for asserting presence of elements during tests.
WebAssert.php file core/tests/Drupal/Tests/WebAssert.php
WebAssert::$baseUrl property core/tests/Drupal/Tests/WebAssert.php The absolute URL of the site under test.
WebAssert::addressEquals function core/tests/Drupal/Tests/WebAssert.php
WebAssert::addressMatches function core/tests/Drupal/Tests/WebAssert.php
WebAssert::addressNotEquals function core/tests/Drupal/Tests/WebAssert.php
WebAssert::assert function core/tests/Drupal/Tests/WebAssert.php Asserts a condition.
WebAssert::assertEscaped function core/tests/Drupal/Tests/WebAssert.php Passes if the raw text IS found escaped on the loaded page.
WebAssert::assertNoEscaped function core/tests/Drupal/Tests/WebAssert.php Passes if the raw text IS NOT found escaped on the loaded page.
WebAssert::buildStatusMessageSelector function core/tests/Drupal/Tests/WebAssert.php Builds a xpath selector for a message with given type and text.
WebAssert::buildXPathQuery function core/tests/Drupal/Tests/WebAssert.php Builds an XPath query.
WebAssert::buttonExists function core/tests/Drupal/Tests/WebAssert.php Checks that specific button exists on the current page.
WebAssert::buttonNotExists function core/tests/Drupal/Tests/WebAssert.php Checks that the specific button does NOT exist on the current page.
WebAssert::checkboxChecked function core/tests/Drupal/Tests/WebAssert.php
WebAssert::checkboxNotChecked function core/tests/Drupal/Tests/WebAssert.php
WebAssert::cleanUrl function core/tests/Drupal/Tests/WebAssert.php
WebAssert::cookieEquals function core/tests/Drupal/Tests/WebAssert.php
WebAssert::cookieExists function core/tests/Drupal/Tests/WebAssert.php

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