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
DemoUmamiProfileTest::assertDemonstrationWarningMessage function core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php Asserts if the demonstration warning message is displayed properly.
DestinationCategoryTest::assertCategories function core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php Asserts that all migrations are tagged as either Configuration or Content.
DirectWritePreconditionBypass::assertIsFulfilled function core/modules/package_manager/src/DirectWritePreconditionBypass.php
DirectWriteTest::assertNotDirectWrite function core/modules/package_manager/tests/src/Kernel/DirectWriteTest.php Event listener that asserts the sandbox manager isn't in direct-write mode.
DiscoveryTestBase::assertDefinitionIdentical function core/tests/Drupal/KernelTests/Core/Plugin/Discovery/DiscoveryTestBase.php Asserts a definition against an expected definition.
DisplayPageWebTest::assertPagePath function core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php Tests that we can successfully change a view page display path.
DriverSpecificConnectionUnitTestBase::assertConnection function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificConnectionUnitTestBase.php Asserts that a connection ID exists.
DriverSpecificConnectionUnitTestBase::assertNoConnection function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificConnectionUnitTestBase.php Asserts that a connection ID does not exist.
DriverSpecificSchemaTestBase::assertCollation function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php Asserts that fields have the correct collation, if supported.
DriverSpecificSchemaTestBase::assertFieldAdditionRemoval function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php Asserts that a given field can be added and removed from a table.
DriverSpecificSchemaTestBase::assertFieldChange function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php Asserts that a field can be changed from one spec to another.
DriverSpecificSchemaTestBase::assertFieldCharacteristics function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php Asserts that a newly added field has the correct characteristics.
DriverSpecificTransactionTestBase::assertRowAbsent function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Asserts that a given row is absent from the test table.
DriverSpecificTransactionTestBase::assertRowPresent function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificTransactionTestBase.php Asserts that a given row is present in the test table.
DrupalComponentTest::assertNoCoreUsage function core/tests/Drupal/Tests/Component/DrupalComponentTest.php Asserts that the given class is not using any class from Core namespace.
DrupalComponentTest::providerAssertNoCoreUsage function core/tests/Drupal/Tests/Component/DrupalComponentTest.php Data provider for testAssertNoCoreUsage().
DrupalComponentTest::testAssertNoCoreUsage function core/tests/Drupal/Tests/Component/DrupalComponentTest.php @legacy-covers \Drupal\Tests\Component\DrupalComponentTest::assertNoCoreUsage
DrupalMessengerServiceTest::testStatusMessageAssertions function core/modules/system/tests/src/Functional/Bootstrap/DrupalMessengerServiceTest.php Tests assertion methods in WebAssert related to status messages.
EditModeTest::assertAnnounceEditMode function core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php Asserts that the correct message was announced when entering edit mode.
EditModeTest::assertAnnounceLeaveEditMode function core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php Assert that the correct message was announced when leaving edit mode.
EntityAccessControlHandlerTest::assertEntityAccess function core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php Asserts entity access correctly grants or denies access.
EntityApiTest::assertCRUD function core/tests/Drupal/KernelTests/Core/Entity/EntityApiTest.php Executes a test set for a defined entity type and user.
EntityContextDefinitionIsSatisfiedTest::assertRequirementIsSatisfied function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php Asserts that the requirement is satisfied as expected.
EntityCrudHookTest::assertHookMessageOrder function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Checks the order of CRUD hook execution messages.
EntityDisplayTest::assertDependency function core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php Asserts that $key is a $type type dependency of $display config entity.
EntityDisplayTest::assertDependencyHelper function core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php Provides a helper for dependency assertions.
EntityDisplayTest::assertNoDependency function core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php Asserts that $key is not a $type type dependency of $display config entity.
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.
EntityLinksTest::assertFilterProcessResult function core/modules/filter/tests/src/Kernel/EntityLinksTest.php Asserts an input string + langcode yield the expected FilterProcessResult.
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 Asserts the bundle order.
EntityQueryTest::assertResult function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php Asserts the query results.
EntityQueryTest::assertRevisionResult function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php Asserts revision query results.
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

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