Search for test

  1. Search 9.5.x for test
  2. Search 8.9.x for test
  3. Search 10.3.x for test
  4. Search 11.x for test
  5. Other projects
Title Object type File name Summary
DrupalWebTestCase::$redirect_count property modules/simpletest/drupal_web_test_case.php The number of redirects followed during the handling of a request.
DrupalWebTestCase::$session_id property modules/simpletest/drupal_web_test_case.php The current session ID, if available.
DrupalWebTestCase::$session_name property modules/simpletest/drupal_web_test_case.php The current session name, if available.
DrupalWebTestCase::$temp_files_directory property modules/simpletest/drupal_web_test_case.php The temporary files directory created for testing purposes.
DrupalWebTestCase::$url property modules/simpletest/drupal_web_test_case.php The URL currently loaded in the internal browser.
DrupalWebTestCase::assertField function modules/simpletest/drupal_web_test_case.php Asserts that a field exists with the given name or ID.
DrupalWebTestCase::assertFieldById function modules/simpletest/drupal_web_test_case.php Asserts that a field exists in the current page with the given ID and value.
DrupalWebTestCase::assertFieldByName function modules/simpletest/drupal_web_test_case.php Asserts that a field exists in the current page with the given name and value.
DrupalWebTestCase::assertFieldByXPath function modules/simpletest/drupal_web_test_case.php Asserts that a field exists in the current page by the given XPath.
DrupalWebTestCase::assertFieldChecked function modules/simpletest/drupal_web_test_case.php Asserts that a checkbox field in the current page is checked.
DrupalWebTestCase::assertLink function modules/simpletest/drupal_web_test_case.php Pass if a link with the specified label is found, and optional with the
specified index.
DrupalWebTestCase::assertLinkByHref function modules/simpletest/drupal_web_test_case.php Pass if a link containing a given href (part) is found.
DrupalWebTestCase::assertMail function modules/simpletest/drupal_web_test_case.php Asserts that the most recently sent e-mail message has the given value.
DrupalWebTestCase::assertMailPattern function modules/simpletest/drupal_web_test_case.php Asserts that the most recently sent e-mail message has the pattern in it.
DrupalWebTestCase::assertMailString function modules/simpletest/drupal_web_test_case.php Asserts that the most recently sent e-mail message has the string in it.
DrupalWebTestCase::assertNoDuplicateIds function modules/simpletest/drupal_web_test_case.php Asserts that each HTML ID is used for just a single element.
DrupalWebTestCase::assertNoField function modules/simpletest/drupal_web_test_case.php Asserts that a field does not exist with the given name or ID.
DrupalWebTestCase::assertNoFieldById function modules/simpletest/drupal_web_test_case.php Asserts that a field does not exist with the given ID and value.
DrupalWebTestCase::assertNoFieldByName function modules/simpletest/drupal_web_test_case.php Asserts that a field does not exist with the given name and value.
DrupalWebTestCase::assertNoFieldByXPath function modules/simpletest/drupal_web_test_case.php Asserts that a field doesn't exist or its value doesn't match, by XPath.
DrupalWebTestCase::assertNoFieldChecked function modules/simpletest/drupal_web_test_case.php Asserts that a checkbox field in the current page is not checked.
DrupalWebTestCase::assertNoLink function modules/simpletest/drupal_web_test_case.php Pass if a link with the specified label is not found.
DrupalWebTestCase::assertNoLinkByHref function modules/simpletest/drupal_web_test_case.php Pass if a link containing a given href (part) is not found.
DrupalWebTestCase::assertNoOptionSelected function modules/simpletest/drupal_web_test_case.php Asserts that a select option in the current page is not checked.
DrupalWebTestCase::assertNoPattern function modules/simpletest/drupal_web_test_case.php Will trigger a pass if the perl regex pattern is not present in raw content.
DrupalWebTestCase::assertNoRaw function modules/simpletest/drupal_web_test_case.php Pass if the raw text is NOT found on the loaded page, fail otherwise. Raw text
refers to the raw HTML that the page generated.
DrupalWebTestCase::assertNoResponse function modules/simpletest/drupal_web_test_case.php Asserts the page did not return the specified response code.
DrupalWebTestCase::assertNoText function modules/simpletest/drupal_web_test_case.php Pass if the text is NOT found on the text version of the page. The text version
is the equivalent of what a user would see when viewing through a web browser.
In other words the HTML has been filtered out of the contents.
DrupalWebTestCase::assertNoTitle function modules/simpletest/drupal_web_test_case.php Pass if the page title is not the given string.
DrupalWebTestCase::assertNoUniqueText function modules/simpletest/drupal_web_test_case.php Pass if the text is found MORE THAN ONCE on the text version of the page.
DrupalWebTestCase::assertOptionSelected function modules/simpletest/drupal_web_test_case.php Asserts that a select option in the current page is checked.
DrupalWebTestCase::assertPattern function modules/simpletest/drupal_web_test_case.php Will trigger a pass if the Perl regex pattern is found in the raw content.
DrupalWebTestCase::assertRaw function modules/simpletest/drupal_web_test_case.php Pass if the raw text IS found on the loaded page, fail otherwise. Raw text
refers to the raw HTML that the page generated.
DrupalWebTestCase::assertResponse function modules/simpletest/drupal_web_test_case.php Asserts the page responds with the specified response code.
DrupalWebTestCase::assertText function modules/simpletest/drupal_web_test_case.php Pass if the text IS found on the text version of the page. The text version
is the equivalent of what a user would see when viewing through a web browser.
In other words the HTML has been filtered out of the contents.
DrupalWebTestCase::assertTextHelper function modules/simpletest/drupal_web_test_case.php Helper for assertText and assertNoText.
DrupalWebTestCase::assertThemeOutput function modules/simpletest/drupal_web_test_case.php Asserts themed output.
DrupalWebTestCase::assertTitle function modules/simpletest/drupal_web_test_case.php Pass if the page title is the given string.
DrupalWebTestCase::assertUniqueText function modules/simpletest/drupal_web_test_case.php Pass if the text is found ONLY ONCE on the text version of the page.
DrupalWebTestCase::assertUniqueTextHelper function modules/simpletest/drupal_web_test_case.php Helper for assertUniqueText and assertNoUniqueText.
DrupalWebTestCase::assertUrl function modules/simpletest/drupal_web_test_case.php Pass if the internal browser's URL matches the given path.
DrupalWebTestCase::buildXPathQuery function modules/simpletest/drupal_web_test_case.php Builds an XPath query.
DrupalWebTestCase::changeDatabasePrefix function modules/simpletest/drupal_web_test_case.php Changes the database connection to the prefixed one.
DrupalWebTestCase::checkForMetaRefresh function modules/simpletest/drupal_web_test_case.php Check for meta refresh tag and if found call drupalGet() recursively. This
function looks for the http-equiv attribute to be set to "Refresh"
and is case-sensitive.
DrupalWebTestCase::checkPermissions function modules/simpletest/drupal_web_test_case.php Check to make sure that the array of permissions are valid.
DrupalWebTestCase::clickLink function modules/simpletest/drupal_web_test_case.php Follows a link by name.
DrupalWebTestCase::constructFieldXpath function modules/simpletest/drupal_web_test_case.php Helper function: construct an XPath for the given set of attributes and value.
DrupalWebTestCase::copySetupCache function modules/simpletest/drupal_web_test_case.php Copy the setup cache from/to another table and files directory.
DrupalWebTestCase::cronRun function modules/simpletest/drupal_web_test_case.php Runs cron in the Drupal installed by Simpletest.
DrupalWebTestCase::curlClose function modules/simpletest/drupal_web_test_case.php Close the cURL handler and unset the handler.

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