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
HtmlToTextTest::assertHtmlToText function core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php Helper function to test \Drupal\Core\Mail\MailFormatHelper::htmlToText().
ImageEffectsTest::assertImageEffect function core/modules/image/tests/src/Functional/ImageEffectsTest.php Asserts the effect processing of an image effect plugin.
ImageFormatterTest::assertCacheTags function core/modules/image/tests/src/Kernel/ImageFormatterTest.php Asserts that a renderable array has a set of cache tags.
InlineBlockPrivateFilesTest::assertFileAccessibleOnNode function core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php Asserts a file is accessible on the page.
InlineBlockTestBase::assertDialogClosedAndTextVisible function core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTestBase.php Asserts that the dialog closes and the new text appears on the main canvas.
InlineBlockTestBase::assertSaveLayout function core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTestBase.php Saves a layout and asserts the message is correct.
InnocuousTest::insertAssert function core/modules/simpletest/tests/src/Kernel/TestDeprecatedTestHooks.php Override to prevent any assertions from being stored.
InnocuousTest::storeAssertion function core/modules/simpletest/tests/src/Kernel/TestDeprecatedTestHooks.php Override to prevent any assertions from being stored.
Inspector::assertAll function core/lib/Drupal/Component/Assertion/Inspector.php Asserts callback returns TRUE for each member of a traversable.
Inspector::assertAllArrays function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are arrays.
Inspector::assertAllCallable function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are callable.
Inspector::assertAllFloat function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are float values.
Inspector::assertAllHaveKey function core/lib/Drupal/Component/Assertion/Inspector.php Asserts all given keys exist in every member array.
Inspector::assertAllIntegers function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are integer values.
Inspector::assertAllMatch function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are strings that contain the specified string.
Inspector::assertAllNotEmpty function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are not empty.
Inspector::assertAllNumeric function core/lib/Drupal/Component/Assertion/Inspector.php Asserts all members are numeric data types or strings castable to such.
Inspector::assertAllObjects function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are objects.
Inspector::assertAllRegularExpressionMatch function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are strings matching a regular expression.
Inspector::assertAllStrictArrays function core/lib/Drupal/Component/Assertion/Inspector.php Asserts all members are strict arrays.
Inspector::assertAllStringable function core/lib/Drupal/Component/Assertion/Inspector.php Asserts all members are strings or objects with magic __toString() method.
Inspector::assertAllStrings function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that all members are strings.
Inspector::assertStrictArray function core/lib/Drupal/Component/Assertion/Inspector.php Asserts that the array is strict.
Inspector::assertStringable function core/lib/Drupal/Component/Assertion/Inspector.php Asserts argument is a string or an object castable to a string.
Inspector::assertTraversable function core/lib/Drupal/Component/Assertion/Inspector.php Asserts argument can be traversed with foreach.
InspectorTest::providerTestAssertAllStrings function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
InspectorTest::testAssertAllArrays function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are arrays.
InspectorTest::testAssertAllFloat function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are floating point variables.
InspectorTest::testAssertAllHaveKey function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members have specified keys.
InspectorTest::testAssertAllIntegers function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are integers.
InspectorTest::testAssertAllMatch function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting strstr() or stristr() match.
InspectorTest::testAssertAllNumeric function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all arguments are numbers or strings castable to numbers.
InspectorTest::testAssertAllObjects function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are objects.
InspectorTest::testAssertAllRegularExpressionMatch function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting regular expression match.
InspectorTest::testAssertAllStrictArrays function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are strict arrays.
InspectorTest::testAssertAllStringable function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are strings or objects with __toString().
InspectorTest::testAssertAllStrings function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting all members are strings.
InspectorTest::testAssertStrictArray function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting array is 0-indexed - the strict definition of array.
InspectorTest::testAssertTraversable function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php Tests asserting argument is an array or traversable object.
InstallUninstallTest::assertHelp function core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php Verifies a module's help.
InstallUninstallTest::assertInstallModuleUpdates function core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php Asserts the module post update functions after install.
InstallUninstallTest::assertModuleNotInstalled function core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php Asserts that a module is not yet installed.
InstallUninstallTest::assertModuleSuccessfullyInstalled function core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php Asserts that a module was successfully installed.
InstallUninstallTest::assertSuccessfulUninstall function core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php Uninstalls a module and asserts that it was done correctly.
InstallUninstallTest::assertUninstallModuleUpdates function core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php Asserts the module post update functions after uninstall.
JavascriptTestBase::assertSession function core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php Returns WebAssert object.
JsMessageTest::assertCurrentMessages function core/tests/Drupal/FunctionalJavascriptTests/Core/JsMessageTest.php Asserts that currently shown messages match expected messages.
JSWebAssert class core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Defines a class with methods for asserting presence of elements during tests.
JSWebAssert.php file core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
JSWebAssert::assertEscaped function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Passes if the raw text IS found escaped on the loaded page.

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