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
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
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
EntityTestDateRangeTest::assertNormalizationEdgeCases function core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php
EntityTestDatetimeTest::assertNormalizationEdgeCases function core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php
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.
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.
FieldableEntityDefinitionUpdateTest::assertEntityData function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts test entity data after a fieldable entity type update.
FieldableEntityDefinitionUpdateTest::assertEntityTypeSchema function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts revisionable and/or translatable characteristics of an entity type.
FieldableEntityDefinitionUpdateTest::assertNonRevisionableAndNonTranslatable function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts that an entity type is neither revisionable nor translatable.
FieldableEntityDefinitionUpdateTest::assertRevisionable function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts the revisionable characteristics of an entity type.
FieldableEntityDefinitionUpdateTest::assertRevisionableAndTranslatable function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts the revisionable / translatable characteristics of an entity type.
FieldableEntityDefinitionUpdateTest::assertTranslatable function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts the translatable characteristics of an entity type.

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