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
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 Test that a node, or its specific corner, is not visible in the viewport.
JSWebAssert::assertVisibleInViewport function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Test 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::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::waitForButton function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for a button (input[type=submit|image|button|reset], button) with
specified 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.
JSWebAssert::waitForId function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for an element by its id and returns it when available.
JSWebAssert::waitForLink function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for a link with specified locator and returns it when available.
JSWebAssert::waitForText function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for the specified text and returns its element when available.
JSWebAssert::waitOnAutocomplete function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Waits for the jQuery autocomplete delay duration.
JSWebAssertTest class core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebAssertTest.php Tests for the JSWebAssert class.
JSWebAssertTest.php file core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebAssertTest.php
JSWebAssertTest::$defaultTheme property core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebAssertTest.php The theme to install as the default for testing.
JSWebAssertTest::$modules property core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebAssertTest.php Required modules.
JSWebAssertTest::testJsWebAssert function core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebAssertTest.php Tests that JSWebAssert assertions work correctly.
JsWebAssertTestForm class core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Test form for JSWebAssert JavaScriptTestBase.
JsWebAssertTestForm.php file core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
JsWebAssertTestForm::addAssertWaitOnAjaxRequest function core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Ajax callback for the "Test waitForAjax" button.
JsWebAssertTestForm::addButton function core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Ajax callback for the "Add button" button.
JsWebAssertTestForm::addField function core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Ajax callback for the "Add field" button.
JsWebAssertTestForm::addId function core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Ajax callback for the "Add ID" button.
JsWebAssertTestForm::addLink function core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Ajax callback for the "Add link" button.
JsWebAssertTestForm::addWaitForElementVisible function core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Ajax callback for the "Test waitForElementVisible" button.
JsWebAssertTestForm::buildForm function core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Form for testing the addition of various types of elements via AJAX.
JsWebAssertTestForm::getFormId function core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Returns a unique string identifying the form.
JsWebAssertTestForm::submitForm function core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php Form submission handler.
JSWebWithWebDriverAssertTest class core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebWithWebDriverAssertTest.php Tests for the JSWebAssert class using webdriver.
JSWebWithWebDriverAssertTest.php file core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebWithWebDriverAssertTest.php
JSWebWithWebDriverAssertTest::$defaultTheme property core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebWithWebDriverAssertTest.php The theme to install as the default for testing.
JSWebWithWebDriverAssertTest::$minkDefaultDriverClass property core/tests/Drupal/FunctionalJavascriptTests/Tests/JSWebWithWebDriverAssertTest.php To use a legacy phantomjs based approach, please use PhantomJSDriver::class.
js_webassert_test.info.yml file core/modules/system/tests/modules/js_webassert_test/js_webassert_test.info.yml core/modules/system/tests/modules/js_webassert_test/js_webassert_test.info.yml
js_webassert_test.libraries.yml file core/modules/system/tests/modules/js_webassert_test/js_webassert_test.libraries.yml core/modules/system/tests/modules/js_webassert_test/js_webassert_test.libraries.yml
js_webassert_test.routing.yml file core/modules/system/tests/modules/js_webassert_test/js_webassert_test.routing.yml core/modules/system/tests/modules/js_webassert_test/js_webassert_test.routing.yml
KernelAssertLegacyTraitTest class core/tests/Drupal/Tests/Core/Assert/KernelAssertLegacyTraitTest.php @coversDefaultClass \Drupal\KernelTests\AssertLegacyTrait
@group Assert
@group legacy
KernelAssertLegacyTraitTest.php file core/tests/Drupal/Tests/Core/Assert/KernelAssertLegacyTraitTest.php
KernelAssertLegacyTraitTest::testAssertFalse function core/tests/Drupal/Tests/Core/Assert/KernelAssertLegacyTraitTest.php @expectedDeprecation Support for asserting against non-boolean values in ::assertFalse is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertEmpty(). See https://www.drupal.org/node/3082086
KernelAssertLegacyTraitTest::testAssertTrue function core/tests/Drupal/Tests/Core/Assert/KernelAssertLegacyTraitTest.php @expectedDeprecation Support for asserting against non-boolean values in ::assertTrue is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertNotEmpty(). See https://www.drupal.org/node/3082086
KernelTestBase::assertPostConditions function core/tests/Drupal/KernelTests/KernelTestBase.php
KernelTestBaseShutdownTest::assertPostConditions function core/tests/Drupal/KernelTests/KernelTestBaseShutdownTest.php
LatestRevisionFilterTest::assertNotInResultSet function core/modules/views/tests/src/Kernel/Entity/LatestRevisionFilterTest.php Asserts that a list of revision IDs are not in the result.
LayoutBuilderAccessTest::assertExpectedAccess function core/modules/layout_builder/tests/src/Functional/LayoutBuilderAccessTest.php Asserts the correct response code is returned based on expected access.
LayoutBuilderCompatibilityTestBase::assertFieldAttributes function core/modules/layout_builder/tests/src/Kernel/LayoutBuilderCompatibilityTestBase.php Asserts that the rendered entity has the correct fields.
LayoutBuilderDisableInteractionsTest::assertContextualLinkRetainsMouseup function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php Makes sure contextual links respond to mouseup event.
LayoutBuilderDisableInteractionsTest::assertContextualLinksClickable function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php Confirms that Layout Builder contextual links remain active.

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