Search for assert

  1. Search 9.5.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
FileTestCase::assertDirectoryPermissions function modules/simpletest/tests/file.test Helper function to test the permissions of a directory.
FileTestCase::assertFilePermissions function modules/simpletest/tests/file.test Helper function to test the permissions of a file.
FileTestCase::assertFileUnchanged function modules/simpletest/tests/file.test Check that two files have the same values for all fields other than the
timestamp.
FileTestCase::assertSameFile function modules/simpletest/tests/file.test Check that two files are the same by comparing the fid and filepath.
FilterUnitTestCase::assertFilteredString function modules/filter/filter.test Asserts multiple filter output expectations for multiple input strings.
FilterUnitTestCase::assertNoNormalized function modules/filter/filter.test Asserts that text transformed to lowercase with HTML entities decoded does not contain a given string.
FilterUnitTestCase::assertNormalized function modules/filter/filter.test Asserts that a text transformed to lowercase with HTML entities decoded does contains a given string.
FormsTestCase::assertFormValuesDefault function modules/simpletest/tests/form.test Assert that the values submitted to a form matches the default values of the elements.
GraphUnitTest::assertComponents function modules/simpletest/tests/graph.test Verify expected components in a graph.
GraphUnitTest::assertPaths function modules/simpletest/tests/graph.test Verify expected paths in a graph.
GraphUnitTest::assertReversePaths function modules/simpletest/tests/graph.test Verify expected reverse paths in a graph.
GraphUnitTest::assertWeights function modules/simpletest/tests/graph.test Verify expected order in a graph.
HtaccessTest::assertFileAccess function modules/system/system.test Asserts that a file exists and requesting it returns a specific response.
ImageToolkitTestCase::assertToolkitOperationsCalled function modules/simpletest/tests/image.test Assert that all of the specified image toolkit operations were called
exactly once once, other values result in failure.
ListFieldUITestCase::assertAllowedValuesInput function modules/field/modules/list/tests/list.test Tests a string input for the 'allowed values' form element.
LocalePluralFormatTest::assertPluralFormat function modules/locale/locale.test Helper assert to test locale_get_plural page.
LocaleUpgradePathTestCase::assertPageInLanguage function modules/simpletest/tests/upgrade/upgrade.locale.test Asserts that a page exists and is in the specified language.
Manager::assert function misc/typo3/phar-stream-wrapper/src/Manager.php
MenuLinksUnitTestCase::assertMenuLinkParents function modules/simpletest/tests/menu.test Assert that at set of links is properly parented.
MenuNodeTestCase::assertNoOption function modules/menu/menu.test Asserts that a select option in the current page does not exist.
MenuTestCase::assertMenuLink function modules/menu/menu.test Fetch the menu item from the database and compare it to the specified
array.
MenuTreeDataTestCase::assertSameLink function modules/simpletest/tests/menu.test Check that two menu links are the same by comparing the mlid.
MenuWebTestCase::assertBreadcrumb function modules/simpletest/tests/menu.test Assert that a given path shows certain breadcrumb links.
ModuleTestCase::assertLogMessage function modules/system/system.test Verify a log entry was entered for a module's status change.
Called in the same way of the expected original watchdog() execution.
ModuleTestCase::assertModules function modules/system/system.test Assert the list of modules are enabled or disabled.
ModuleTestCase::assertModuleTablesDoNotExist function modules/system/system.test Assert that none of the tables defined in a module's hook_schema() exist.
ModuleTestCase::assertModuleTablesExist function modules/system/system.test Assert that all tables defined in a module's hook_schema() exist.
ModuleTestCase::assertTableCount function modules/system/system.test Assert there are tables that begin with the specified base table name.
ModuleUnitTest::assertModuleList function modules/simpletest/tests/module.test Assert that module_list() return the expected values.
NodeAccessBaseTableTestCase::assertTaxonomyPage function modules/node/node.test Checks taxonomy/term listings to ensure only accessible nodes are listed.
NodeAccessTestCase::assertNodeAccess function modules/node/node.test Asserts node_access() correctly grants or denies access.
openid_verify_assertion function modules/openid/openid.module Attempt to verify the response received from the OpenID Provider.
openid_verify_assertion_nonce function modules/openid/openid.module Verify that the nonce has not been used in earlier assertions from the same OpenID provider.
openid_verify_assertion_return_url function modules/openid/openid.module Verify that openid.return_to matches the current URL.
openid_verify_assertion_signature function modules/openid/openid.module Verify the signature of the response received from the OpenID provider.
PagerFunctionalWebTestCase::assertClass function modules/simpletest/tests/pager.test Asserts that an element has a given class.
PagerFunctionalWebTestCase::assertNoClass function modules/simpletest/tests/pager.test Asserts that an element does not have a given class.
PagerFunctionalWebTestCase::assertPagerItems function modules/simpletest/tests/pager.test Asserts pager items and links.
PharExtensionInterceptor::assert function misc/typo3/phar-stream-wrapper/src/Interceptor/PharExtensionInterceptor.php Determines whether the base file name has a ".phar" suffix.
PharExtensionInterceptor::assert function misc/typo3/drupal-security/PharExtensionInterceptor.php Determines whether phar file is allowed to execute.
PharInvocationCollection::assertUniqueBaseName function misc/typo3/phar-stream-wrapper/src/Resolver/PharInvocationCollection.php Asserts that base-name is unique. This disallows having multiple invocations for
same base-name but having different alias names.
PharInvocationCollection::assertUniqueInvocation function misc/typo3/phar-stream-wrapper/src/Resolver/PharInvocationCollection.php Asserts that combination of base-name and alias is unique. This allows having multiple
invocations for same base-name but having different alias names (for whatever reason).
PharInvocationResolver::ASSERT_INTERNAL_INVOCATION constant misc/typo3/phar-stream-wrapper/src/Resolver/PharInvocationResolver.php
PharMetaDataInterceptor::assert function misc/typo3/phar-stream-wrapper/src/Interceptor/PharMetaDataInterceptor.php Determines whether the according Phar archive contains
(potential insecure) serialized objects.
PharStreamWrapper::assert function misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php
PharStreamWrapper::resolveAssertable function misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php
PollTestCase::assertPollChoiceOrder function modules/poll/poll.test Assert correct poll choice order in the node form after submission.
RenderElementTypesTestCase::assertElements function modules/simpletest/tests/theme.test Asserts that an array of elements is rendered properly.
RequestSanitizerTest::assertEqualLabelled function modules/simpletest/tests/request_sanitizer.test Asserts two values are equal, includes a label.
RequestSanitizerTest::assertError function modules/simpletest/tests/request_sanitizer.test Asserts that the expected error has been logged.

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