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::curlInitialize function modules/simpletest/drupal_web_test_case.php Initializes the cURL connection.
DrupalWebTestCase::drupalCompareFiles function modules/simpletest/drupal_web_test_case.php Compare two files based on size and file name.
DrupalWebTestCase::drupalCreateContentType function modules/simpletest/drupal_web_test_case.php Creates a custom content type based on default settings.
DrupalWebTestCase::drupalCreateNode function modules/simpletest/drupal_web_test_case.php Creates a node based on default settings.
DrupalWebTestCase::drupalCreateRole function modules/simpletest/drupal_web_test_case.php Creates a role with specified permissions.
DrupalWebTestCase::drupalCreateUser function modules/simpletest/drupal_web_test_case.php Create a user with a given set of permissions.
DrupalWebTestCase::drupalGet function modules/simpletest/drupal_web_test_case.php Retrieves a Drupal path or an absolute path.
DrupalWebTestCase::drupalGetAJAX function modules/simpletest/drupal_web_test_case.php Retrieve a Drupal path or an absolute path and JSON decode the result.
DrupalWebTestCase::drupalGetContent function modules/simpletest/drupal_web_test_case.php Gets the current raw HTML of requested page.
DrupalWebTestCase::drupalGetHeader function modules/simpletest/drupal_web_test_case.php Gets the value of an HTTP response header. If multiple requests were
required to retrieve the page, only the headers from the last request will
be checked by default. However, if TRUE is passed as the second argument,
all requests will be processed…
DrupalWebTestCase::drupalGetHeaders function modules/simpletest/drupal_web_test_case.php Gets the HTTP response headers of the requested page. Normally we are only
interested in the headers returned by the last request. However, if a page
is redirected or HTTP authentication is in use, multiple requests will be
required to retrieve the…
DrupalWebTestCase::drupalGetMails function modules/simpletest/drupal_web_test_case.php Gets an array containing all e-mails sent during this test case.
DrupalWebTestCase::drupalGetNodeByTitle function modules/simpletest/drupal_web_test_case.php Get a node from the database based on its title.
DrupalWebTestCase::drupalGetSettings function modules/simpletest/drupal_web_test_case.php Gets the value of the Drupal.settings JavaScript variable for the currently loaded page.
DrupalWebTestCase::drupalGetTestFiles function modules/simpletest/drupal_web_test_case.php Get a list files that can be used in tests.
DrupalWebTestCase::drupalGetToken function modules/simpletest/drupal_web_test_case.php Generate a token for the currently logged in user.
DrupalWebTestCase::drupalHead function modules/simpletest/drupal_web_test_case.php Retrieves only the headers for a Drupal path or an absolute path.
DrupalWebTestCase::drupalLogin function modules/simpletest/drupal_web_test_case.php Log in a user with the internal browser.
DrupalWebTestCase::drupalLogout function modules/simpletest/drupal_web_test_case.php
DrupalWebTestCase::drupalPost function modules/simpletest/drupal_web_test_case.php Execute a POST request on a Drupal page.
It will be done as usual POST request with SimpleBrowser.
DrupalWebTestCase::drupalPostAJAX function modules/simpletest/drupal_web_test_case.php Execute an Ajax submission.
DrupalWebTestCase::drupalSetContent function modules/simpletest/drupal_web_test_case.php Sets the raw HTML content. This can be useful when a page has been fetched
outside of the internal browser and assertions need to be made on the
returned page.
DrupalWebTestCase::drupalSetSettings function modules/simpletest/drupal_web_test_case.php Sets the value of the Drupal.settings JavaScript variable for the currently loaded page.
DrupalWebTestCase::getAbsoluteUrl function modules/simpletest/drupal_web_test_case.php Takes a path and returns an absolute path.
DrupalWebTestCase::getAllOptions function modules/simpletest/drupal_web_test_case.php Get all option elements, including nested options, in a select.
DrupalWebTestCase::getSelectedItem function modules/simpletest/drupal_web_test_case.php Get the selected value from a select field.
DrupalWebTestCase::getSetupCacheKey function modules/simpletest/drupal_web_test_case.php Returns the cache key used for the setup caching.
DrupalWebTestCase::getUrl function modules/simpletest/drupal_web_test_case.php Get the current URL from the cURL handler.
DrupalWebTestCase::handleForm function modules/simpletest/drupal_web_test_case.php Handle form input related to drupalPost(). Ensure that the specified fields
exist and attempt to create POST data in the correct manner for the particular
field type.
DrupalWebTestCase::loadSetupCache function modules/simpletest/drupal_web_test_case.php Copies the cached tables and files for a cached installation setup.
DrupalWebTestCase::parse function modules/simpletest/drupal_web_test_case.php Parse content returned from curlExec using DOM and SimpleXML.
DrupalWebTestCase::preloadRegistry function modules/simpletest/drupal_web_test_case.php Preload the registry from the testing site.
DrupalWebTestCase::prepareDatabasePrefix function modules/simpletest/drupal_web_test_case.php Generates a database prefix for running tests.
DrupalWebTestCase::prepareEnvironment function modules/simpletest/drupal_web_test_case.php Prepares the current environment for running the test.
DrupalWebTestCase::recursiveDirectoryCopy function modules/simpletest/drupal_web_test_case.php Recursively copy one directory to another.
DrupalWebTestCase::refreshVariables function modules/simpletest/drupal_web_test_case.php Refresh the in-memory set of variables. Useful after a page request is made
that changes a variable in a different thread.
DrupalWebTestCase::resetAll function modules/simpletest/drupal_web_test_case.php Reset all data structures after having enabled new modules.
DrupalWebTestCase::setUp function modules/simpletest/drupal_web_test_case.php Sets up a Drupal site for running functional and integration tests.
DrupalWebTestCase::storeSetupCache function modules/simpletest/drupal_web_test_case.php Store the installation setup to a cache.
DrupalWebTestCase::tearDown function modules/simpletest/drupal_web_test_case.php Delete created files and temporary files directory, delete the tables created by setUp(),
and reset the database prefix.
DrupalWebTestCase::verboseEmail function modules/simpletest/drupal_web_test_case.php Outputs to verbose the most recent $count emails sent.
DrupalWebTestCase::xpath function modules/simpletest/drupal_web_test_case.php Perform an xpath search on the contents of the internal browser. The search
is relative to the root element (HTML tag normally) of the page.
DrupalWebTestCase::__construct function modules/simpletest/drupal_web_test_case.php Constructor for DrupalWebTestCase.
drupal_autoload_test.info file modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test.info name = "Drupal code registry test"
description = "Support module for testing the code registry."
files[] = drupal_autoload_test_interface.inc
files[] = drupal_autoload_test_class.inc
package = Testing
version = VERSION
core =…
drupal_autoload_test.module file modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test.module Test module to check code registry.
drupal_autoload_test_class.inc file modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test_class.inc Test classes for code registry testing.
drupal_autoload_test_interface.inc file modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test_interface.inc Test interfaces for code registry testing.
drupal_autoload_test_registry_files_alter function modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test.module Implements hook_registry_files_alter().
drupal_autoload_test_trait.sh file modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test_trait.sh Test traits for code registry testing.
drupal_generate_test_ua function includes/bootstrap.inc Generates a user agent string with a HMAC and timestamp for simpletest.

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