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. Other projects
Title Object type File name Summary
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.
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.
InstalledPackagesListTrait::assertPackageListsEqual function core/modules/package_manager/tests/src/Traits/InstalledPackagesListTrait.php Asserts that 2 installed package lists are equal.
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.
JSWebAssert::assertExpectedAjaxRequest function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that an AJAX request has been completed.
JSWebAssert::assertNoElementAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that no matching element exists on the page after a wait.
JSWebAssert::assertNoEscaped function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Passes if the raw text IS NOT found escaped on the loaded page.
JSWebAssert::assertNotVisibleInViewport function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Tests that a node, or its specific corner, is not visible in the viewport.
JSWebAssert::assertVisibleInViewport function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Tests that a node, or its specific corner, is visible in the viewport.
JSWebAssert::assertWaitOnAjaxRequest function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for AJAX request to be completed.
JSWebAssert::buildJavascriptStatusMessageSelector function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Builds a xpath selector for a message with given type and text.
JSWebAssert::checkNodeVisibilityInViewport function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Check the visibility of a node, or its specific corner.
JSWebAssert::escapeHtml function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Escapes HTML for testing.
JSWebAssert::isExceptionNotClickable function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Determines if an exception is due to an element not being clickable.
JSWebAssert::statusMessageContains function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message containing a given string exists.
JSWebAssert::statusMessageContainsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message containing given string exists after wait.
JSWebAssert::statusMessageExistsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message exists after wait.
JSWebAssert::statusMessageNotContains function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message containing a given string does not exist.
JSWebAssert::statusMessageNotContainsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that no status message containing given string exists after wait.
JSWebAssert::statusMessageNotExistsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message does not exist after wait.
JSWebAssert::waitForButton function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for the button specified by the locator and returns it.
JSWebAssert::waitForElement function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for the specified selector and returns it when available.
JSWebAssert::waitForElementRemoved function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Looks for the specified selector and returns TRUE when it is unavailable.
JSWebAssert::waitForElementVisible function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for the specified selector and returns it when available and visible.
JSWebAssert::waitForField function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for a field with specified locator and returns it when available.

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