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. Search 11.x for assert
  6. Other projects
Title Object type File name Summary
FieldTranslationSqlStorageTest::assertFieldStorageLangcode function core/tests/Drupal/KernelTests/Core/Entity/FieldTranslationSqlStorageTest.php Checks whether field languages are correctly stored for the given entity.
FieldUIRouteTest::assertLocalTasks function core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php Asserts that local tasks exists.
FieldUiTestTrait::assertFieldDoesNotExistOnOverview function core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php Asserts that the field does not appear on the overview form.
FieldUiTestTrait::assertFieldExistsOnOverview function core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php Asserts that the field appears on the overview form.
FieldUiTestTrait::assertTableHeaderExistsByLabel function core/modules/field_ui/tests/src/Traits/FieldUiTestTrait.php Asserts that a header cell appears on a table.
FieldWebTest::assertNotSubString function core/modules/views/tests/src/Functional/Handler/FieldWebTest.php Asserts that a string is not part of another string.
FieldWebTest::assertSubString function core/modules/views/tests/src/Functional/Handler/FieldWebTest.php Assertion helper which checks whether a string is part of another string.
FileCopyTest::assertPlugin function core/modules/migrate/tests/src/Unit/process/FileCopyTest.php Creates a TestFileCopy process plugin.
FileFieldPathTest::assertPathMatch function core/modules/file/tests/src/Functional/FileFieldPathTest.php Asserts that a file is uploaded to the right location.
FileFieldTestBase::assertFileEntryExists function core/modules/file/tests/src/Functional/FileFieldTestBase.php Asserts that a file exists in the database.
FileFieldTestBase::assertFileEntryNotExists function core/modules/file/tests/src/Functional/FileFieldTestBase.php Asserts that a file does not exist in the database.
FileFieldTestBase::assertFileIsPermanent function core/modules/file/tests/src/Functional/FileFieldTestBase.php Asserts that a file's status is set to permanent in the database.
FileManagedTestBase::assertDifferentFile function core/modules/file/tests/src/Functional/FileManagedTestBase.php Asserts that two files are not the same by comparing the fid and filepath.
FileManagedTestBase::assertFileHookCalled function core/modules/file/tests/src/Functional/FileManagedTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedTestBase::assertFileHooksCalled function core/modules/file/tests/src/Functional/FileManagedTestBase.php Asserts that the specified file hooks were called only once.
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/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 Asserts that the specified file hooks were called only once.
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
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.
FilterDateTest::assertIds function core/modules/datetime/tests/src/Functional/Views/FilterDateTest.php Ensures that a given list of items appear on the view result.
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.
FinderTest::assertRelativeOrder function core/tests/Drupal/Tests/Core/DefaultContent/FinderTest.php Asserts that an item in an array comes before another item in that array.
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.
GdToolkitImageManipulationTestBase::assertColorsAreEqual function core/tests/Drupal/KernelTests/Core/Image/GdToolkitImageManipulationTestBase.php Assert two colors are equal by RGBA, net of full transparency.
GenerateThemeTest::assertThemeExists function core/tests/Drupal/BuildTests/Command/GenerateThemeTest.php Asserts the theme exists. Returns the parsed *.info.yml file.
GenericModuleTestBase::assertHookHelp function core/modules/system/tests/src/Functional/Module/GenericModuleTestBase.php Verifies hook_help() syntax.
GraphTest::assertComponents function core/tests/Drupal/Tests/Component/Graph/GraphTest.php Verify expected components in a graph.

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