Search for assert

  1. Search 7.x for assert
  2. Search 8.9.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
MigrateVocabularyFieldInstanceTest::assertTargetBundles function core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php Asserts the settings of an entity reference field 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::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.
NodeAccessBaseTableTest::assertTaxonomyPage function core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php Checks taxonomy/term listings to ensure only accessible nodes are listed.
NodeAccessGrantsCacheContextTest::assertUserCacheContext function core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php Asserts that for each given user, the expected cache context is returned.
NodeAccessTestBase::assertNodeAccess function core/modules/node/tests/src/Kernel/NodeAccessTestBase.php Asserts that node access correctly grants or denies access.
NodeAccessTestBase::assertNodeCreateAccess function core/modules/node/tests/src/Kernel/NodeAccessTestBase.php Asserts that node create access correctly grants or denies access.
NodeAccessTestBase::nodeAccessAssertMessage function core/modules/node/tests/src/Kernel/NodeAccessTestBase.php Constructs an assert message to display which node access was tested.
NodeDisplayConfigurableTest::assertNodeHtml function core/modules/rdf/tests/src/Functional/Node/NodeDisplayConfigurableTest.php Asserts that the node HTML is as expected.
NodeFieldFilterTest::assertPageCounts function core/modules/node/tests/src/Functional/Views/NodeFieldFilterTest.php Asserts that the given node translation counts are correct.
NodeIntegrationTest::assertNids function core/modules/node/tests/src/Functional/Views/NodeIntegrationTest.php Ensures that a list of nodes appear on the page.
NodeLanguageTest::assertLanguageNames function core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php Asserts the presence of language names in their English or native forms.
NodeTest::assertCacheableNormalizations function core/modules/jsonapi/tests/src/Functional/NodeTest.php Asserts that normalizations are cached in an incremental way.
NodeTest::assertNormalizedFieldsAreCached function core/modules/jsonapi/tests/src/Functional/NodeTest.php Checks that the provided field names are the only fields in the cache.
NodeTestBase::assertNodeAccess function core/modules/node/tests/src/Functional/NodeTestBase.php Asserts that node access correctly grants or denies access.
NodeTestBase::assertNodeCreateAccess function core/modules/node/tests/src/Functional/NodeTestBase.php Asserts that node create access correctly grants or denies access.
NodeTestBase::nodeAccessAssertMessage function core/modules/node/tests/src/Functional/NodeTestBase.php Constructs an assert message to display which node access was tested.
NoJavaScriptAnonymousTest::assertNoJavaScript function core/modules/system/tests/src/Functional/Common/NoJavaScriptAnonymousTest.php Passes if no JavaScript is found on the page.
NumberFieldTest::assertSetMinimumValue function core/modules/field/tests/src/Functional/Number/NumberFieldTest.php Helper function to set the minimum value of a field.
OffCanvasTest::assertOffCanvasDialog function core/modules/system/tests/src/FunctionalJavascript/OffCanvasTest.php @internal
OffCanvasTestBase::assertAllContextualLinksLoaded function core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php Assert all contextual link areas have be loaded.
OffCanvasTestBase::assertElementVisibleAfterWait function core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php Asserts the specified selector is visible after a wait.
OffCanvasTestBase::assertPageLoadComplete function core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php Assert the page is completely loaded.
OptionsFieldUITest::assertAllowedValuesInput function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Tests a string input for the 'allowed values' form element.
OverriddenConfigurationTest::assertOverriddenBlockDisabled function core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php Asserts that an overridden block has Settings Tray disabled.
PageRenderTest::assertPageRenderHookExceptions function core/modules/system/tests/src/Kernel/Common/PageRenderTest.php Asserts whether expected exceptions are thrown for invalid hook implementations.
PagerTest::assertClass function core/modules/system/tests/src/Functional/Pager/PagerTest.php Asserts that an element has a given class.
PagerTest::assertNoClass function core/modules/system/tests/src/Functional/Pager/PagerTest.php Asserts that an element does not have a given class.
PagerTest::assertPagerItems function core/modules/system/tests/src/Functional/Pager/PagerTest.php Asserts pager items and links.
PaginationAJAXTest::assertNoDuplicateAssetsOnPage function core/modules/views/tests/src/FunctionalJavascript/PaginationAJAXTest.php Assert that assets are not loaded twice on a page.
PasswordConfirmWidgetTest::$assert property core/modules/user/tests/src/FunctionalJavascript/PasswordConfirmWidgetTest.php WebAssert object.
PathAliasTestTrait::assertPathAliasExists function core/tests/Drupal/Tests/Traits/Core/PathAliasTestTrait.php Asserts that a path alias exists in the storage.
PathAliasTestTrait::assertPathAliasNotExists function core/tests/Drupal/Tests/Traits/Core/PathAliasTestTrait.php Asserts that a path alias does not exist in the storage.
PathContentModerationTest::assertPathsAreAccessible function core/modules/path/tests/src/Functional/PathContentModerationTest.php Helper callback to verify paths are responding with status 200.
PathWorkspacesTest::assertAccessiblePaths function core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php Helper callback to verify paths are responding with status 200.
PathWorkspacesTest::assertNotAccessiblePaths function core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php Helper callback to verify paths are responding with status 404.

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