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
FileManagedTestBase::assertFileHooksCalled function core/modules/file/src/Tests/FileManagedTestBase.php Assert that all of the specified hook_file_* hooks were called once, other
values result in failure.
FileManagedTestBase::assertFileHooksCalled function core/modules/file/tests/src/Functional/FileManagedTestBase.php Assert that all of the specified hook_file_* hooks were called once, other
values result in failure.
FileManagedTestBase::assertFileUnchanged function core/modules/file/src/Tests/FileManagedTestBase.php Asserts that two files have the same values (except timestamp).
FileManagedTestBase::assertFileUnchanged function core/modules/file/tests/src/Functional/FileManagedTestBase.php Asserts that two files have the same values (except timestamp).
FileManagedTestBase::assertSameFile function core/modules/file/src/Tests/FileManagedTestBase.php Asserts that two files are the same by comparing the fid and filepath.
FileManagedTestBase::assertSameFile function core/modules/file/tests/src/Functional/FileManagedTestBase.php Asserts that two files are the same by comparing the fid and filepath.
FileManagedUnitTestBase::assertDifferentFile function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that two files are not the same by comparing the fid and filepath.
FileManagedUnitTestBase::assertFileHookCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedUnitTestBase::assertFileHooksCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Assert that all of the specified hook_file_* hooks were called once, other
values result in failure.
FileManagedUnitTestBase::assertFileUnchanged function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that two files have the same values (except timestamp).
FileManagedUnitTestBase::assertSameFile function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that two files are the same by comparing the fid and filepath.
FileMigrationSetupTrait::assertEntity function core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php Tests a single file entity.
FileSystemTest::assertFilePermissions function core/tests/Drupal/Tests/Core/File/FileSystemTest.php Asserts that the file permissions of a given URI matches.
FileTestBase::assertDirectoryPermissions function core/tests/Drupal/KernelTests/Core/File/FileTestBase.php Helper function to test the permissions of a directory.
FileTestBase::assertFilePermissions function core/tests/Drupal/KernelTests/Core/File/FileTestBase.php Helper function to test the permissions of a file.
FileUploadResourceTestBase::assertNormalizationEdgeCases function core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php Asserts normalization-specific edge cases.
FileUploadResourceTestBase::assertResponseData function core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php Asserts expected normalized data matches response data.
FileUploadTest::assertResponseData function core/modules/jsonapi/tests/src/Functional/FileUploadTest.php Asserts expected normalized data matches response data.
FilterAPITest::assertFilterFormatViolation function core/modules/filter/tests/src/Kernel/FilterAPITest.php Checks if an expected violation exists in the given violations.
FilterFormTest::assertDisabledTextarea function core/modules/filter/tests/src/Functional/FilterFormTest.php Asserts that a textarea with a given ID has been disabled from editing.
FilterFormTest::assertEnabledTextarea function core/modules/filter/tests/src/Functional/FilterFormTest.php Asserts that a textarea with a given ID exists and is not disabled.
FilterFormTest::assertNoSelect function core/modules/filter/tests/src/Functional/FilterFormTest.php Makes sure that no select element with the given ID exists on the page.
FilterFormTest::assertOptions function core/modules/filter/tests/src/Functional/FilterFormTest.php Asserts that a select element has the correct options.
FilterFormTest::assertRequiredSelectAndOptions function core/modules/filter/tests/src/Functional/FilterFormTest.php Asserts that there is a select element with the given ID that is required.
FilterKernelTest::assertFilteredString function core/modules/filter/tests/src/Kernel/FilterKernelTest.php Asserts multiple filter output expectations for multiple input strings.
FilterKernelTest::assertNoNormalized function core/modules/filter/tests/src/Kernel/FilterKernelTest.php Asserts that text transformed to lowercase with HTML entities decoded does not contain a given string.
FilterKernelTest::assertNormalized function core/modules/filter/tests/src/Kernel/FilterKernelTest.php Asserts that a text transformed to lowercase with HTML entities decoded does contains a given string.
FormAjaxSubscriberTest::assertResponseFromException function core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php Asserts that the expected response is derived from the given exception.
FormElementsRenderTest::assertRenderedElement function core/modules/system/tests/src/Kernel/Common/FormElementsRenderTest.php Tests that elements are rendered properly.
FormTest::assertFormValuesDefault function core/modules/system/tests/src/Functional/Form/FormTest.php Assert that the values submitted to a form matches the default values of the elements.
FormTestBase::assertFormElement function core/tests/Drupal/Tests/Core/Form/FormTestBase.php Asserts that the expected form structure is found in a form for a given key.
FrameworkTest::assertCommand function core/modules/system/tests/src/Functional/Ajax/FrameworkTest.php Asserts the array of Ajax commands contains the searched command.
FrontPageTest::assertNotInResultSet function core/modules/node/tests/src/Functional/Views/FrontPageTest.php Verifies that an amount of nids aren't in the result.
GraphTest::assertComponents function core/tests/Drupal/Tests/Component/Graph/GraphTest.php Verify expected components in a graph.
GraphTest::assertPaths function core/tests/Drupal/Tests/Component/Graph/GraphTest.php Verify expected paths in a graph.
GraphTest::assertReversePaths function core/tests/Drupal/Tests/Component/Graph/GraphTest.php Verify expected reverse paths in a graph.
GraphTest::assertWeights function core/tests/Drupal/Tests/Component/Graph/GraphTest.php Verify expected order in a graph.
HalEntityNormalizationTrait::assertNormalizationEdgeCases function core/modules/hal/tests/src/Functional/EntityResource/HalEntityNormalizationTrait.php
HandlerTest::assertEqualValue function core/modules/views/tests/src/Functional/Handler/HandlerTest.php Check to see if a value is the same as the value on a certain handler.
HandlerTest::assertNoDuplicateField function core/modules/views_ui/tests/src/Functional/HandlerTest.php Asserts that fields only appear once.
HelpTopicSearchTest::assertSearchResultsCount function core/modules/help_topics/tests/src/Functional/HelpTopicSearchTest.php Asserts that help search returned the expected number of results.
HighWaterTest::assertNodeDoesNotExist function core/modules/migrate/tests/src/Kernel/HighWaterTest.php Assert that node with given title does not exist.
HighWaterTest::assertNodeExists function core/modules/migrate/tests/src/Kernel/HighWaterTest.php Assert that node with given title exists.
HtaccessTest::assertFileAccess function core/modules/system/tests/src/Functional/System/HtaccessTest.php Asserts that a file exists and requesting it returns a specific response.
HtaccessTest::assertFilePermissions function core/tests/Drupal/KernelTests/Core/File/HtaccessTest.php Asserts expected file permissions for a given file.
HtmlResponseAttachmentsTest::assertFeed function core/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php Helper function to make assertions about the presence of an RSS feed.
HtmlResponseAttachmentsTest::assertHead function core/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php Helper function to make assertions about HTML head elements.
HtmlResponseAttachmentsTest::assertTeapotHeaders function core/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php Helper function to make assertions about added HTTP headers.
HtmlTest::providerTestTransformRootRelativeUrlsToAbsoluteAssertion function core/tests/Drupal/Tests/Component/Utility/HtmlTest.php Provides test data for testTransformRootRelativeUrlsToAbsoluteAssertion().
HtmlTest::testTransformRootRelativeUrlsToAbsoluteAssertion function core/tests/Drupal/Tests/Component/Utility/HtmlTest.php @covers ::transformRootRelativeUrlsToAbsolute
@dataProvider providerTestTransformRootRelativeUrlsToAbsoluteAssertion

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