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. Search 11.x for assert
  6. Other projects
Title Object type File name Summary
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.
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.
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.
FieldDateTest::assertRenderedDatesEqual function core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php Asserts properly formatted display against 'created' field in view.
FieldDateTest::assertRenderedFutureDatesEqual function core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php Asserts properly formatted display against 'destroyed' field in view.
FieldDiscoveryTestTrait::assertFieldProcess function core/modules/migrate_drupal/tests/src/Traits/FieldDiscoveryTestTrait.php Asserts the field discovery returns the expected processes.
FieldDiscoveryTestTrait::assertFieldProcessKeys function core/modules/migrate_drupal/tests/src/Traits/FieldDiscoveryTestTrait.php Asserts the field discovery returns the expected processes.
FieldDiscoveryTestTrait::assertSourcePlugin function core/modules/migrate_drupal/tests/src/Traits/FieldDiscoveryTestTrait.php Asserts a migrate source plugin.
FieldEntityTranslationTest::assertRows function core/modules/views/tests/src/Functional/Entity/FieldEntityTranslationTest.php Ensures that the rendered results are working as expected.
FieldFieldAccessTestBase::assertFieldAccess function core/modules/views/tests/src/Kernel/Handler/FieldFieldAccessTestBase.php Checks views field access for a given entity type and field name.
FieldItemTest::assertSavedFieldItemValue function core/tests/Drupal/KernelTests/Core/Field/FieldItemTest.php Checks that the saved field item value matches the expected one.
FieldKernelTest::assertNotSubString function core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php Asserts that a string is not part of another string.
FieldKernelTest::assertSubString function core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php Asserts that a string is part of another string.
FieldKernelTestBase::assertFieldValues function core/modules/field/tests/src/Kernel/FieldKernelTestBase.php Assert that a field has the expected values in an entity.
FieldRenderedEntityTest::assertCacheabilityMetadata function core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php Ensures that the expected cacheability metadata is applied.
FieldRenderedEntityTest::assertConfigDependencies function core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php Ensures that the config dependencies are calculated the right way.
FieldRenderedEntityTranslationTest::assertRows function core/modules/views/tests/src/Functional/Entity/FieldRenderedEntityTranslationTest.php Ensures that the rendered results are working as expected.
FieldStorageConfigAccessControlHandlerTest::assertAllowOperations function core/modules/field/tests/src/Unit/FieldStorageConfigAccessControlHandlerTest.php Assert method to verify the access by operations.
FieldTestBase::assertFieldValues function core/modules/field/tests/src/Functional/FieldTestBase.php Assert that a field has the expected values in an entity.

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