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
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.
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.
PermissionHandlerTest::assertPermissions function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Checks that the permissions are like expected.
PharExtensionInterceptor::assert function core/lib/Drupal/Core/Security/PharExtensionInterceptor.php Determines whether phar file is allowed to execute.
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.
Phpunit4CompatibilityTest::testFrameworkAssertionFailedError function core/tests/Drupal/Tests/Phpunit4CompatibilityTest.php Tests existence of \PHPUnit_Framework_AssertionFailedError.
PhpunitCompatibilityTraitTest::testAssertEqualsCanonicalizing function core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php Tests that assert(Not)EqualsCanonicalizing methods are available.
PhpunitCompatibilityTraitTest::testAssertIs function core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php Tests that assertIs(Not)* methods are available.
PhpunitCompatibilityTraitTest::testAssertStringContainsString function core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php Tests that assert*StringContainsString* methods are available.
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.
QuickEditEndPointAccessTest::assertAccessIsBlocked function core/modules/quickedit/tests/src/Functional/QuickEditEndPointAccessTest.php Asserts that access to the passed URL is blocked.
QuickEditJavascriptTestBase::assertEntityInstanceFieldMarkup function core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditJavascriptTestBase.php Asserts all in-place editable fields with markup expectations.
QuickEditJavascriptTestBase::assertEntityInstanceFieldStates function core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditJavascriptTestBase.php Asserts all FieldModels for the given entity instance.
QuickEditJavascriptTestBase::assertEntityInstanceStates function core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditJavascriptTestBase.php Asserts all EntityModels (entity instances) on the page.
QuickEditJavascriptTestBase::assertQuickEditEntityToolbar function core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditJavascriptTestBase.php Asserts the state of the Quick Edit entity toolbar.
RearrangeFieldsTest::assertFieldOrder function core/modules/views_ui/tests/src/Functional/RearrangeFieldsTest.php Check if the fields are in the correct order.
RegistrationWithUserFieldsTest::$webAssert property core/modules/user/tests/src/FunctionalJavascript/RegistrationWithUserFieldsTest.php WebAssert object.
RelationshipNodeTermDataTest::assertQueriesTermAccessTag function core/modules/taxonomy/tests/src/Functional/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
RendererTest::assertAccess function core/tests/Drupal/Tests/Core/Render/RendererTest.php Asserts that a render array with access checking renders correctly.
RendererTestBase::assertRenderCacheItem function core/tests/Drupal/Tests/Core/Render/RendererTestBase.php Asserts a render cache item.
RequestSanitizerTest::assertError function core/tests/Drupal/Tests/Core/Security/RequestSanitizerTest.php Asserts that the expected error has been logged.
RequirementsPageTrait::assertWarningSummaries function core/tests/Drupal/Tests/RequirementsPageTrait.php Assert the given warning summaries are present on the page.
ResourceTestBase::assertAuthenticationEdgeCases function core/modules/rest/tests/src/Functional/ResourceTestBase.php Asserts authentication provider-specific edge cases.
ResourceTestBase::assertNormalizationEdgeCases function core/modules/rest/tests/src/Functional/ResourceTestBase.php Asserts normalization-specific edge cases.
ResourceTestBase::assertResourceErrorResponse function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Asserts that a resource error response has the given message.
ResourceTestBase::assertResourceErrorResponse function core/modules/rest/tests/src/Functional/ResourceTestBase.php Asserts that a resource error response has the given message.
ResourceTestBase::assertResourceResponse function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Asserts that a resource response has the given status code and body.
ResourceTestBase::assertResourceResponse function core/modules/rest/tests/src/Functional/ResourceTestBase.php Asserts that a resource response has the given status code and body.
ResourceTestBase::assertResponseWhenMissingAuthentication function core/modules/rest/tests/src/Functional/ResourceTestBase.php Verifies the error response in case of missing authentication.
ResourceTestBase::assertSameDocument function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Asserts that an expected document matches the response body.
ResponsiveImageFieldDisplayTest::assertResponsiveImageFieldFormattersLink function core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php Tests responsive image formatters linked to the file or node.
RestJsonApiUnsupported::assertNormalizationEdgeCases function core/modules/jsonapi/tests/src/Functional/RestJsonApiUnsupported.php Asserts normalization-specific edge cases.
RestRegisterUserTest::assertNormalizationEdgeCases function core/modules/user/tests/src/Functional/RestRegisterUserTest.php Asserts normalization-specific edge cases.

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