Search for assert

  1. Search 7.x for assert
  2. Search 9.5.x for assert
  3. Search 10.3.x for assert
  4. Search 11.x for assert
  5. Other projects
Title Object type File name Summary
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.
FieldLayoutEntityDisplayTest::assertEntityValues function core/modules/field_layout/tests/src/Kernel/FieldLayoutEntityDisplayTest.php Asserts than an entity has the correct values.
FieldLayoutTest::assertFieldInRegion function core/modules/field_layout/tests/src/FunctionalJavascript/FieldLayoutTest.php Asserts that a field exists in a given region.
FieldRdfaTestBase::assertFormatterRdfa function core/modules/rdf/tests/src/Kernel/Field/FieldRdfaTestBase.php Helper function to test the formatter's RDFa.
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.
FieldSchemaDataUninstallUpdateTest::assertFieldSchemaData function core/modules/system/tests/src/Functional/Update/FieldSchemaDataUninstallUpdateTest.php Asserts that field schema data to be purged is found.
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/src/Tests/FieldTestBase.php Assert that a field has the expected values in an entity.
FieldTestBase::assertFieldValues function core/modules/field/tests/src/Functional/FieldTestBase.php Assert that a field has the expected values in an entity.
FieldTranslationSqlStorageTest::assertFieldStorageLangcode function core/tests/Drupal/KernelTests/Core/Entity/FieldTranslationSqlStorageTest.php Checks whether field languages are correctly stored for the given entity.
FieldUIRouteTest::assertLocalTasks function core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php Asserts that local tasks exists.
FieldUpdateTest::assertEntityRefDependency function core/modules/field/tests/src/Functional/Update/FieldUpdateTest.php Asserts that a config depends on 'entity_reference' or not
FieldWebTest::assertNotSubString function core/modules/views/tests/src/Functional/Handler/FieldWebTest.php Assertion helper which checks whether a string is not part of another string.
FieldWebTest::assertSubString function core/modules/views/tests/src/Functional/Handler/FieldWebTest.php Assertion helper which checks whether a string is part of another string.
FileCopyTest::assertPlugin function core/modules/migrate/tests/src/Unit/process/FileCopyTest.php Creates a TestFileCopy process plugin.
FileFieldDisplayTest::assertNoDuplicateIds function core/modules/file/tests/src/Functional/FileFieldDisplayTest.php Asserts that each HTML ID is used for just a single element on the page.
FileFieldPathTest::assertPathMatch function core/modules/file/tests/src/Functional/FileFieldPathTest.php Asserts that a file is uploaded to the right location.
FileFieldTestBase::assertFileEntryExists function core/modules/file/src/Tests/FileFieldTestBase.php Asserts that a file exists in the database.
FileFieldTestBase::assertFileEntryExists function core/modules/file/tests/src/Functional/FileFieldTestBase.php Asserts that a file exists in the database.
FileFieldTestBase::assertFileEntryNotExists function core/modules/file/src/Tests/FileFieldTestBase.php Asserts that a file does not exist in the database.
FileFieldTestBase::assertFileEntryNotExists function core/modules/file/tests/src/Functional/FileFieldTestBase.php Asserts that a file does not exist in the database.
FileFieldTestBase::assertFileExists function core/modules/file/src/Tests/FileFieldTestBase.php Asserts that a file exists physically on disk.
FileFieldTestBase::assertFileIsPermanent function core/modules/file/src/Tests/FileFieldTestBase.php Asserts that a file's status is set to permanent in the database.
FileFieldTestBase::assertFileIsPermanent function core/modules/file/tests/src/Functional/FileFieldTestBase.php Asserts that a file's status is set to permanent in the database.
FileFieldTestBase::assertFileNotExists function core/modules/file/src/Tests/FileFieldTestBase.php Asserts that a file does not exist on disk.
FileFieldTestBaseTrait::assertFileExists function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/FileFieldTestBaseTrait.php Asserts that a file exists physically on disk.
FileFieldTestBaseTrait::assertFileNotExists function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/FileFieldTestBaseTrait.php Asserts that a file does not exist on disk.
FileFieldValidateTest::testAssertFileExistsDeprecation function core/modules/file/tests/src/Functional/FileFieldValidateTest.php Tests deprecation of the assertFileExists and assertFileNotExists methods.
FileManagedTestBase::assertDifferentFile function core/modules/file/src/Tests/FileManagedTestBase.php Asserts that two files are not the same by comparing the fid and filepath.
FileManagedTestBase::assertDifferentFile function core/modules/file/tests/src/Functional/FileManagedTestBase.php Asserts that two files are not the same by comparing the fid and filepath.
FileManagedTestBase::assertFileHookCalled function core/modules/file/src/Tests/FileManagedTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedTestBase::assertFileHookCalled function core/modules/file/tests/src/Functional/FileManagedTestBase.php Assert that a hook_file_* hook was called a certain number of times.

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