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
EntityFieldDefaultValueTest::assertDefaultValues function core/tests/Drupal/KernelTests/Core/Entity/EntityFieldDefaultValueTest.php Executes a test set for a defined entity type.
EntityFormDisplayAccessControlHandlerTest::assertAllowOperations function core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php Assert method to verify the access by operations.
EntityQueryAggregateTest::assertResults function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php Asserts the results as expected regardless of order between and in rows.
EntityQueryAggregateTest::assertSortedResults function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php Asserts the results as expected regardless of order in rows.
EntityQueryRelationshipTest::assertResults function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php Assert the results.
EntityQueryTest::assertBundleOrder function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php @internal
EntityQueryTest::assertResult function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php @internal
EntityQueryTest::assertRevisionResult function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php @internal
EntityReferenceAdminTest::assertFieldSelectOptions function core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php Checks if a select element contains the specified options.
EntityReferenceAdminTest::assertFieldSelectOptions function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php Checks if a select element contains the specified options.
EntityReferenceFieldItemNormalizerTest::assertDenormalize function core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php Asserts denormalization process is correct for give data.
EntityReferenceFieldTest::assertUserAutocreate function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Asserts that the setter callback performs autocreation for users.
EntityReferenceFieldTest::assertUserRoleAutocreate function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Asserts that the setter callback performs autocreation for user roles.
EntityReferenceFieldTranslatedReferenceViewTest::assertEntityReferenceDisplay function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php Assert entity reference display.
EntityReferenceFieldTranslatedReferenceViewTest::assertEntityReferenceFormDisplay function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php Assert entity reference form display.
EntityReferenceIntegrationTest::assertFieldValues function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php Asserts that the reference field values are correct.
EntityReferenceSelectionAccessTest::assertReferenceable function core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php Checks that a selection plugin returns the expected results.
EntityReferenceWidgetTest::assertAnnounceContains function core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php Checks for inclusion of text in #drupal-live-announce.
EntityRepositoryTest::assertEntityType function core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php Asserts that the entity has the expected entity type ID.
EntityResourceTestBase::assert406Response function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts a 406 response… or in some cases a 403 response, because weirdness.
EntityResourceTestBase::assertEntityArraySubset function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Recursively asserts that the expected items are set in the tested entity.
EntityResourceTestBase::assertNormalizationEdgeCases function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts normalization-specific edge cases.
EntityResourceTestBase::assertPatchProtectedFieldNamesStructure function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts structure of $patchProtectedFieldNames.
EntityResourceTestBase::assertResourceNotAvailable function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts that a resource is unavailable: 404, 406 if it has canonical route.
EntityResourceTestBase::assertStoredEntityMatchesSentNormalization function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts that the stored entity matches the sent normalization.
EntityTestDateOnlyTest::assertNormalizationEdgeCases function core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateOnlyTest.php Asserts normalization-specific edge cases.
EntityTestDateRangeTest::assertNormalizationEdgeCases function core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php Asserts normalization-specific edge cases.
EntityTestDatetimeTest::assertNormalizationEdgeCases function core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php Asserts normalization-specific edge cases.
EntityTypeTest::assertNoPublicProperties function core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php Asserts there on no public properties on the object instance.
EntityUrlTest::assertUrl function core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php Asserts that a given URL object matches the expectations.
EntityUUIDTest::assertCRUD function core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php Executes the UUID CRUD tests for the given entity type.
EntityViewsDataTest::assertBundleField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests views data for a bundle field.
EntityViewsDataTest::assertEntityReferenceField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests views data for an entity reference field.
EntityViewsDataTest::assertLanguageField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests views data for a language field.
EntityViewsDataTest::assertLongTextField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests views data for a long text field.
EntityViewsDataTest::assertNumericField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests views data for a numeric field.
EntityViewsDataTest::assertStringField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests views data for a string field.
EntityViewsDataTest::assertUriField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests views data for a URI field.
EntityViewsDataTest::assertUuidField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests views data for a UUID field.
EntityViewsDataTest::assertViewsDataField function core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php Tests generic stuff per field.
ErrorHandlerTest::assertErrorMessage function core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php Helper function: assert that the error message is found.
ErrorHandlerTest::assertNoErrorMessage function core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php Helper function: assert that the error message is not found.
ErrorHandlerTest::assertNoMessages function core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php Asserts that no messages are printed onto the page.
ExposedFormTest::assertIds function core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php Checks whether the specified ids are the ones displayed in the view output.
ExposedFormTest::assertNodesExist function core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php Asserts that nodes of only given bundles exist.
ExposedFormUITest::assertNoGroupedFilterErrors function core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php Asserts that there are no Grouped Filters errors.
FailureMarker::assertNotExists function core/modules/package_manager/src/FailureMarker.php Asserts the failure file doesn't exist.
FailureMarkerTest::testAssertNotExists function core/modules/package_manager/tests/src/Kernel/FailureMarkerTest.php Tests that the failure marker can contain an exception message.
FieldableEntityDefinitionUpdateTest::assertBackupTables function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts that the backup tables have been kept after a successful update.
FieldableEntityDefinitionUpdateTest::assertBundleFieldSchema function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts that the bundle field schema is correct.

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