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
MigrateTestTrait::assertEntity function core/modules/forum/tests/src/Kernel/Migrate/MigrateTestTrait.php Validate a migrated term contains the expected values.
MigrateTestTrait::assertHierarchy function core/modules/forum/tests/src/Kernel/Migrate/MigrateTestTrait.php Assert that a term is present in the tree storage, with the right parents.
MigrateUpgradeExecuteTestBase::assertEntityRevisionsCount function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php Checks the number of the specified entity's revisions.
MigrateUpgradeExecuteTestBase::assertLogError function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php Asserts log errors.
MigrateUpgradeFormStepsTest::assertFirstForm function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeFormStepsTest.php Helper to test that a path goes to the Overview form.
MigrateUpgradeTestBase::assertEmailsSent function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Confirm emails were sent.
MigrateUpgradeTestBase::assertFileMigrations function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Checks public and private files are copied but not temporary files.
MigrateUpgradeTestBase::assertIdConflictForm function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Helper method that asserts text on the ID conflict form.
MigrateUpgradeTestBase::assertReviewForm function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Helper to assert content on the Review form.
MigrateUpgradeTestBase::assertUpgrade function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Asserts the upgrade completed successfully.
MigrateUpgradeTestBase::assertUserLogIn function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Asserts that a migrated user can login.
MigrateUrlAliasTest::assertPath function core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php Asserts that a path alias matches a set of conditions.
MigrateUserPictureD6FileTest::assertEntity function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserPictureD6FileTest.php Asserts a file entity.
MigrateUserRoleTest::assertEntity function core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php Asserts aspects of a user role config entity.
MigrateUserRoleTest::assertMessages function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Assert the logged migrate messages.
MigrateUserRoleTest::assertNoDuplicateRoles function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Asserts there are no duplicate roles.
MigrateUserRoleTest::assertRole function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Helper function to perform assertions on a user role.
MigrateUserRoleTest::assertRoles function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Helper to assert the user roles.
MigrateUserTest::assertEntity function core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserTest.php Asserts various aspects of a user account.
MigrateViewModesTest::assertEntity function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateViewModesTest.php Asserts various aspects of a view mode entity.
MigrateVocabularyEntityDisplayTest::assertComponent function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityDisplayTest.php Asserts various aspects of a particular component of a view display.
MigrateVocabularyEntityDisplayTest::assertComponentNotExists function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityDisplayTest.php Asserts that a particular component is NOT included in a display.
MigrateVocabularyEntityDisplayTest::assertEntity function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityDisplayTest.php Asserts various aspects of a view display.
MigrateVocabularyEntityFormDisplayTest::assertComponent function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityFormDisplayTest.php Asserts various aspects of a particular component of a form display.
MigrateVocabularyEntityFormDisplayTest::assertEntity function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityFormDisplayTest.php Asserts various aspects of a form display entity.
MigrateVocabularyFieldInstanceTest::assertEntity function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php Asserts various aspects of a field config entity.
MigrateVocabularyFieldInstanceTest::assertEntityReferenceFields function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php Asserts the settings of an entity reference field config entity.
MigrateVocabularyFieldInstanceTest::assertLinkFields function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php Asserts the settings of a link field config entity.
MigrateVocabularyFieldInstanceTest::assertTargetBundles function core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php Asserts the settings of an entity reference field config entity.
MigrateVocabularyFieldTest::assertEntity function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldTest.php Asserts various aspects of a field_storage_config entity.
ModerationLocaleTest::assertLatestVersionPage function core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php Asserts that this is the "latest version" page for the specified node.
ModerationLocaleTest::assertModerationForm function core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php Asserts that the moderation form is displayed for the specified node.
ModerationLocaleTest::assertNoModerationForm function core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php Asserts that the moderation form is not displayed for the specified node.
ModerationLocaleTest::assertNotLatestVersionPage function core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php Asserts that this is not the "latest version" page for the specified node.
ModerationStateFieldItemListTest::assertEmptiedModerationFieldItemList function core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php Assert the set of expectations when the moderation state field is emptied.
ModuleConfigureRouteTest::assertModuleConfigureRoutesExist function core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php Asserts the configure routes of a module exist.
ModuleHandlerTest::assertHasResetHookImplementations function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerTest.php Asserts whether certain hook implementations exist.
ModuleHandlerTest::assertModuleList function core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php Assert that the extension handler returns the expected values.
ModuleTest::assertInstanceHandler function core/modules/views/tests/src/Kernel/ModuleTest.php Ensure that a certain handler is an instance of a certain table/field.
ModuleTestBase::assertLogMessage function core/modules/system/tests/src/Functional/Module/ModuleTestBase.php Verify a log entry was entered for a module's status change.
ModuleTestBase::assertModuleConfig function core/modules/system/tests/src/Functional/Module/ModuleTestBase.php Asserts that the default configuration of a module has been installed.
ModuleTestBase::assertModules function core/modules/system/tests/src/Functional/Module/ModuleTestBase.php Assert the list of modules are enabled or disabled.
ModuleTestBase::assertModuleTablesDoNotExist function core/modules/system/tests/src/Functional/Module/ModuleTestBase.php Assert that none of the tables defined in a module's hook_schema() exist.
ModuleTestBase::assertModuleTablesExist function core/modules/system/tests/src/Functional/Module/ModuleTestBase.php Assert that all tables defined in a module's hook_schema() exist.
ModuleTestBase::assertNoModuleConfig function core/modules/system/tests/src/Functional/Module/ModuleTestBase.php Asserts that no configuration exists for a given module.
MoveBlockFormTest::assertBlockTable function core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php Asserts the correct block labels appear in the draggable tables.
MoveBlockFormTest::assertRegionBlocksOrder function core/modules/layout_builder/tests/src/FunctionalJavascript/MoveBlockFormTest.php Asserts that blocks are in the correct order for a region.
MultipleValueWidgetTest::assertHasFocusByAttribute function core/modules/field/tests/src/FunctionalJavascript/MultipleValueWidgetTest.php Asserts an element specified by an attribute value has focus.
NavigationBlockUiTest::assertOffCanvasFormAfterWait function core/modules/navigation/tests/src/FunctionalJavascript/NavigationBlockUiTest.php Waits for the specified form and returns it when available and visible.
NavigationTopBarTest::assertActionsWeight function core/modules/navigation/tests/src/Functional/NavigationTopBarTest.php Asserts that top bar actions respect local tasks weights.

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