Search for assert
- Search 7.x for assert
- Search 9.5.x for assert
- Search 8.9.x for assert
- Search 10.3.x for assert
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
UpdateSemverTestBaselineTrait::assertNoExtraVersion | function | core/ |
Asserts update table when there is no extra version. |
UrlGeneratorTest::assertGenerateFromRoute | function | core/ |
Asserts \Drupal\Core\Routing\UrlGenerator::generateFromRoute()'s output. |
UserAccessControlHandlerTest::assertFieldAccess | function | core/ |
Asserts correct field access grants for a field. |
UserAccountFormFieldsTest::assertFieldOrder | function | core/ |
Asserts that the 'name' form element is directly before the 'pass' element. |
UserLoginHttpTest::assertHttpResponse | function | core/ |
Checks a response for status code and body. |
UserLoginHttpTest::assertHttpResponseWithMessage | function | core/ |
Checks a response for status code and message. |
UserLoginTest::assertFailedLogin | function | core/ |
Make an unsuccessful login attempt. |
UserPasswordResetTest::assertNoPasswordIpFlood | function | core/ |
Makes assertions about a password reset not triggering IP flood control. |
UserPasswordResetTest::assertNoValidPasswordReset | function | core/ |
Helper function to make assertions about an invalid password reset. |
UserPasswordResetTest::assertPasswordIpFlood | function | core/ |
Makes assertions about a password reset triggering IP flood control. |
UserPasswordResetTest::assertValidPasswordReset | function | core/ |
Helper function to make assertions about a valid password reset. |
UserRegistrationRestTest::assertNormalizationEdgeCases | function | core/ |
Asserts normalization-specific edge cases. |
UserRegistrationTest::assertRegistrationFormCacheTagsWithUserFields | function | core/ |
Asserts the presence of cache tags on registration form with user fields. |
UserResourceTestBase::assertRpcLogin | function | core/ |
Verifies that logging in with the given username and password works. |
UserValidationTest::assertAllowedValuesViolation | function | core/ |
Verifies that an AllowedValues violation exists for the given field. |
UserValidationTest::assertLengthViolation | function | core/ |
Verifies that a length violation exists for the given field. |
ValidationResultTest::assertResultValid | function | core/ |
Asserts a check result is valid. |
ValidationTestTrait::assertValidationResultsEqual | function | core/ |
Asserts two validation result sets are equal. |
ValidKeysConstraintValidatorTest::assertValidationErrors | function | core/ |
Asserts a set of validation errors is raised when the config is validated. |
VariationCacheTest::assertCacheBackendItem | function | core/ |
Asserts that an item was properly stored in the cache backend. |
VariationCacheTest::assertVariationCacheItem | function | core/ |
Asserts that an item was properly stored in the variation cache. |
VariationCacheTest::assertVariationCacheMiss | function | core/ |
Asserts that an item could not be retrieved from the variation cache. |
WebAssert | class | core/ |
Defines a class with methods for asserting presence of elements during tests. |
WebAssert.php | file | core/ |
|
WebAssert::$baseUrl | property | core/ |
The absolute URL of the site under test. |
WebAssert::addressEquals | function | core/ |
Checks that current session address is equals to provided one. |
WebAssert::addressNotEquals | function | core/ |
Checks that current session address is not equals to provided one. |
WebAssert::assert | function | core/ |
Asserts a condition. |
WebAssert::assertEscaped | function | core/ |
Passes if the raw text IS found escaped on the loaded page. |
WebAssert::assertNoEscaped | function | core/ |
Passes if the raw text IS NOT found escaped on the loaded page. |
WebAssert::buildStatusMessageSelector | function | core/ |
Builds a xpath selector for a message with given type and text. |
WebAssert::buildXPathQuery | function | core/ |
Builds an XPath query. |
WebAssert::buttonExists | function | core/ |
Checks that specific button exists on the current page. |
WebAssert::buttonNotExists | function | core/ |
Checks that the specific button does NOT exist on the current page. |
WebAssert::cleanUrl | function | core/ |
Trims the base URL from the URL. |
WebAssert::elementTextEquals | function | core/ |
Asserts a specific element's text equals an expected text. |
WebAssert::fieldDisabled | function | core/ |
Checks that a given form field element is disabled. |
WebAssert::fieldEnabled | function | core/ |
Checks that a given form field element is enabled. |
WebAssert::fieldValueEquals | function | core/ |
|
WebAssert::hiddenFieldExists | function | core/ |
Checks that specific hidden field exists. |
WebAssert::hiddenFieldNotExists | function | core/ |
Checks that specific hidden field does not exist. |
WebAssert::hiddenFieldValueEquals | function | core/ |
Checks that specific hidden field have provided value. |
WebAssert::hiddenFieldValueNotEquals | function | core/ |
Checks that specific hidden field doesn't have the provided value. |
WebAssert::linkByHrefExists | function | core/ |
Passes if a link containing a given href (part) is found. |
WebAssert::linkByHrefExistsExact | function | core/ |
Passes if a link with a given href is found. |
WebAssert::linkByHrefNotExists | function | core/ |
Passes if a link containing a given href (part) is not found. |
WebAssert::linkByHrefNotExistsExact | function | core/ |
Passes if a link with a given href is not found. |
WebAssert::linkExists | function | core/ |
Passes if a link with the specified label is found. |
WebAssert::linkExistsExact | function | core/ |
Passes if a link with the exactly specified label is found. |
WebAssert::linkNotExists | function | core/ |
Passes if a link with the specified label is not found. |
Pagination
- Previous page
- Page 9
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.