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
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.
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.
OptionsFieldUIAllowedValuesTest::assertAllowValuesRowCount function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php Assert the count of the allowed values rows.
OptionsFieldUIAllowedValuesTest::assertHasFocusByAttribute function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php Asserts an element specified by an attribute value has focus.
OptionsFieldUIAllowedValuesTest::assertNodeFormOrder function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php Asserts the order of provided option list on node form.
OptionsFieldUIAllowedValuesTest::assertOrder function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php Asserts the order of provided option list on admin path.
OptionsFieldUITest::assertAllowedValuesInput function core/modules/options/tests/src/Functional/OptionsFieldUITest.php Tests an input array 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.
PackageManagerBypassTestTrait::assertUpdateStagedTimes function core/modules/package_manager/tests/src/Traits/PackageManagerBypassTestTrait.php Asserts the number of times an update was staged.
PackageManagerKernelTestBase::assertEventPropagationStopped function core/modules/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php Asserts event propagation is stopped by a certain event subscriber.
PackageManagerKernelTestBase::assertExpectedResultsFromException function core/modules/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php Asserts that a StageEventException has a particular set of results.
PackageManagerKernelTestBase::assertResults function core/modules/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php Asserts validation results are returned from a stage life cycle event.
PackageManagerKernelTestBase::assertStatusCheckResults function core/modules/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php Asserts validation results are returned from the status check event.
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.
PerformanceTestTrait::assertCountBetween function core/tests/Drupal/Tests/PerformanceTestTrait.php Asserts that a count is between a min and max inclusively.
PermissionHandlerTest::assertPermissions function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Checks that the permissions are like expected.
PHP Runtime Assert Statements group core/core.api.php Use of the assert() statement in Drupal.
PhpStorageTestBase::additionalAssertCRUD function core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php Additional asserts to be run.
PhpStorageTestBase::assertCRUD function core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php Assert that a PHP storage's load/save/delete operations work.
PluginInstanceTest::assertPluginInstances function core/modules/views/tests/src/Kernel/PluginInstanceTest.php Asserts that instances of every views plugin can be created.
PreviewTest::assertClass function core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php Asserts that an element has a given class.
PreviewTest::assertPreviewAJAX function core/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php Assert that the preview contains expected data.
ProcessingTest::assertBatchMessages function core/modules/system/tests/src/Functional/Batch/ProcessingTest.php Triggers a pass if the texts were found in order in the raw content.
RearrangeFieldsTest::assertFieldOrder function core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php Check if the fields are in the correct order.
RecipeCommandTest::assertCheckpointsExist function core/tests/Drupal/FunctionalTests/Core/Recipe/RecipeCommandTest.php Asserts that the current set of checkpoints matches the given labels.
RegistrationWithUserFieldsTest::$webAssert property core/modules/user/tests/src/FunctionalJavascript/RegistrationWithUserFieldsTest.php WebAssert object.
RelationshipNodeTermDataTest::assertQueriesTermAccessTag function core/modules/taxonomy/tests/src/Kernel/Views/RelationshipNodeTermDataTest.php Assert views queries have taxonomy_term_access tag.
RenderCacheIntegrationTest::assertCacheTagsForEntityBasedView function core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php Tests cache tags on output & result cache items for an entity-based view.
RenderCacheIntegrationTest::assertCacheTagsForFieldBasedView function core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php Tests cache tags on output & result cache items for a field-based view.
RenderElementTypesTest::assertElements function core/tests/Drupal/KernelTests/Core/Render/Element/RenderElementTypesTest.php Asserts that an array of elements is rendered properly.
RendererPlaceholdersTest::assertPlaceholderRenderCache function core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php @internal
RendererTest::assertAccess function core/tests/Drupal/Tests/Core/Render/RendererTest.php Asserts that a render array with access checking renders correctly.

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