Hierarchy
- class BackdropTestCase
- class BackdropWebTestCase
- class BlockTestCase
- class BackdropWebTestCase
Expanded class hierarchy of BlockTestCase
File
- core/
modules/ block/ tests/ block.test, line 7 - Tests for block.module.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
BlockTestCase:: |
function | Test creating custom block using Raw HTML (full_html). | |
BlockTestCase:: |
function | Test creating custom block, editing, and then deleting it. | |
BlockTestCase:: |
function | Tests the various block hooks get called when needed. | |
BlockTestCase:: |
function |
Sets up a Backdrop site for running functional and integration tests. Overrides BackdropWebTestCase:: |
|
BlockTestCase:: |
protected | property | |
BackdropWebTestCase:: |
function |
Constructor for BackdropWebTestCase. Overrides BackdropTestCase:: |
|
BackdropWebTestCase:: |
protected | function | 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. |
BackdropWebTestCase:: |
protected | function | Outputs to verbose the most recent $count emails sent. |
BackdropWebTestCase:: |
protected | function | Copies the cached tables and config for a profile if one is available. |
BackdropWebTestCase:: |
protected | function |
Delete created files and temporary files directory, delete the tables
created by setUp(), and reset the database prefix. Overrides BackdropTestCase:: |
BackdropWebTestCase:: |
protected | function | Reset all data structures after having enabled new modules. |
BackdropWebTestCase:: |
protected | function | Refresh the in-memory set of variables and state values. Useful after a page request is made that changes a variable in a different thread. |
BackdropWebTestCase:: |
private | function | Recursively copy one directory to another. |
BackdropWebTestCase:: |
protected | function | Prepares the current environment for running the test. |
BackdropWebTestCase:: |
protected | function | Parse content returned from curlExec using DOM and SimpleXML. |
BackdropWebTestCase:: |
protected | function | Handle form input related to backdropPost(). Ensure that the specified fields exist and attempt to create POST data in the correct manner for the particular field type. |
BackdropWebTestCase:: |
protected | function | Get the current URL from the cURL handler. |
BackdropWebTestCase:: |
protected | function | Get the selected value from a select field. |
BackdropWebTestCase:: |
protected | function | Get all option elements, including nested options, in a select. |
BackdropWebTestCase:: |
protected | function | Takes a path and returns an absolute path. |
BackdropWebTestCase:: |
protected | function | Initializes the cURL connection. |
BackdropWebTestCase:: |
protected | function | Reads headers and registers errors received from the tested site. |
BackdropWebTestCase:: |
protected | function | Initializes and executes a cURL request. |
BackdropWebTestCase:: |
protected | function | Close the cURL handler and unset the handler. |
BackdropWebTestCase:: |
protected | function | Runs cron in the Backdrop installed by SimpleTest. |
BackdropWebTestCase:: |
protected | function | Helper function: construct an XPath for the given set of attributes and value. |
BackdropWebTestCase:: |
protected | function | Follows a link by name. |
BackdropWebTestCase:: |
protected | function | Clears the watchdog database table. |
BackdropWebTestCase:: |
protected | function | Check to make sure that the array of permissions are valid. |
BackdropWebTestCase:: |
protected | function | Check for meta refresh tag and if found call backdropGet() recursively. This function looks for the http-equiv attribute to be set to "Refresh" and is case-sensitive. |
BackdropWebTestCase:: |
protected | function | Changes the database connection to the prefixed one. |
BackdropWebTestCase:: |
protected | function | Builds an XPath query. |
BackdropWebTestCase:: |
protected | function | Sets the value of the Backdrop.settings JavaScript variable for the currently loaded page. |
BackdropWebTestCase:: |
protected | function | 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. |
BackdropWebTestCase:: |
protected | function | Execute an Ajax submission. |
BackdropWebTestCase:: |
protected | function | Execute a POST request on a Backdrop page. It will be done as usual POST request with SimpleBrowser. |
BackdropWebTestCase:: |
protected | function | |
BackdropWebTestCase:: |
protected | function | Log in a user with the internal browser. |
BackdropWebTestCase:: |
protected | function | Retrieves only the headers for a Backdrop path or an absolute path. |
BackdropWebTestCase:: |
protected | function | Generate a token for the currently logged in user. |
BackdropWebTestCase:: |
protected | function | Get a list files that can be used in tests. |
BackdropWebTestCase:: |
protected | function | Gets the value of the Backdrop.settings JavaScript variable for the currently loaded page. |
BackdropWebTestCase:: |
function | Get a node from the database based on its title. | |
BackdropWebTestCase:: |
protected | function | Gets an array containing all emails sent during this test case. |
BackdropWebTestCase:: |
protected | function | 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… |
BackdropWebTestCase:: |
protected | function | 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… |
BackdropWebTestCase:: |
protected | function | Gets the current raw HTML of requested page. |
BackdropWebTestCase:: |
protected | function | Retrieve a Backdrop path or an absolute path and JSON decode the result. |
BackdropWebTestCase:: |
protected | function | Retrieves a Backdrop path or an absolute path. |
BackdropWebTestCase:: |
protected | function | Create a user with a given set of permissions. |
BackdropWebTestCase:: |
protected | function | Creates a role with specified permissions. |
BackdropWebTestCase:: |
protected | function | Creates a node based on default settings. |
BackdropWebTestCase:: |
protected | function | Creates a custom content type based on default settings. |
BackdropWebTestCase:: |
protected | function | Compare two files based on size and file name. |
BackdropWebTestCase:: |
protected | function | Verifies that a watchdog message has been entered. |
BackdropWebTestCase:: |
protected | function | Pass if the internal browser's URL matches the given path. |
BackdropWebTestCase:: |
protected | function | Helper for assertUniqueText and assertNoUniqueText. |
BackdropWebTestCase:: |
protected | function | Pass if the text is found ONLY ONCE on the text version of the page. |
BackdropWebTestCase:: |
protected | function | Pass if the page title is the given string. |
BackdropWebTestCase:: |
protected | function | Asserts themed output. |
BackdropWebTestCase:: |
protected | function | Helper for assertText and assertNoText. |
BackdropWebTestCase:: |
protected | function | 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. |
BackdropWebTestCase:: |
protected | function | Asserts the page responds with the specified response code. |
BackdropWebTestCase:: |
protected | function | Pass if the raw text IS found on the loaded page, fail otherwise. Raw text refers to the raw HTML that the page generated. |
BackdropWebTestCase:: |
protected | function | Will trigger a pass if the Perl regex pattern is found in the raw content. |
BackdropWebTestCase:: |
protected | function | Asserts that a select option in the current page is checked. |
BackdropWebTestCase:: |
protected | function | Asserts that a select option in the current page exists. |
BackdropWebTestCase:: |
protected | function | Pass if the text is found MORE THAN ONCE on the text version of the page. |
BackdropWebTestCase:: |
protected | function | Pass if the page title is not the given string. |
BackdropWebTestCase:: |
protected | function | 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. |
BackdropWebTestCase:: |
protected | function | Asserts the page did not return the specified response code. |
BackdropWebTestCase:: |
protected | function | 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. |
BackdropWebTestCase:: |
protected | function | Will trigger a pass if the perl regex pattern is not present in raw content. |
BackdropWebTestCase:: |
protected | function | Asserts that a select option in the current page is not checked. |
BackdropWebTestCase:: |
protected | function | Asserts that a select option in the current page does not exist. |
BackdropWebTestCase:: |
protected | function | Pass if a link containing a given href (part) is not found. |
BackdropWebTestCase:: |
protected | function | Pass if a link with the specified label is not found. |
BackdropWebTestCase:: |
protected | function | Asserts that a checkbox field in the current page is not checked. |
BackdropWebTestCase:: |
protected | function | Asserts that a field does not exist in the current page by the given XPath. |
BackdropWebTestCase:: |
protected | function | Asserts that a field does not exist with the given name and value. |
BackdropWebTestCase:: |
protected | function | Asserts that a field does not exist with the given id and value. |
BackdropWebTestCase:: |
protected | function | Asserts that a field does not exist with the given name or id. |
BackdropWebTestCase:: |
protected | function | Asserts that each HTML ID is used for just a single element. |
BackdropWebTestCase:: |
protected | function | Asserts that the most recently sent email message has the string in it. |
BackdropWebTestCase:: |
protected | function | Asserts that the most recently sent email message has the pattern in it. |
BackdropWebTestCase:: |
protected | function | Asserts that the most recently sent email message has the given value. |
BackdropWebTestCase:: |
protected | function | Pass if a link containing a given href (part) is found. |
BackdropWebTestCase:: |
protected | function | Pass if a link with the specified label is found, and optional with the specified index. |
BackdropWebTestCase:: |
protected | function | Asserts that a checkbox field in the current page is checked. |
BackdropWebTestCase:: |
protected | function | Asserts that a field exists in the current page by the given XPath. |
BackdropWebTestCase:: |
protected | function | Asserts that a field exists in the current page with the given name and value. |
BackdropWebTestCase:: |
protected | function | Asserts that a field exists in the current page with the given id and value. |
BackdropWebTestCase:: |
protected | function | Asserts that a field exists with the given name or id. |
BackdropWebTestCase:: |
protected | property | The URL currently loaded in the internal browser. |
BackdropWebTestCase:: |
public | property | |
BackdropWebTestCase:: |
protected | property | The current session name, if available. |
BackdropWebTestCase:: |
protected | property | The current session ID, if available. |
BackdropWebTestCase:: |
protected | property | The number of redirects followed during the handling of a request. |
BackdropWebTestCase:: |
public | property | |
BackdropWebTestCase:: |
protected | property | The profile to install as a basis for testing. |
BackdropWebTestCase:: |
public | property | |
BackdropWebTestCase:: |
protected | property | The content of the page currently loaded in the internal browser (plain text version). |
BackdropWebTestCase:: |
protected | property | The original user, before it was changed to a clean uid = 1 for testing purposes. |
BackdropWebTestCase:: |
protected | property | The original shutdown handlers array, before it was cleaned for testing. |
BackdropWebTestCase:: |
protected | property | The original settings as provided in settings.php. |
BackdropWebTestCase:: |
protected | property | The original installation profile, before changing for testing purposes. |
BackdropWebTestCase:: |
protected | property | |
BackdropWebTestCase:: |
protected | property | |
BackdropWebTestCase:: |
protected | property | The original clean URL setting, before changing for testing purposes. |
BackdropWebTestCase:: |
protected | property | The maximum number of redirects to follow when handling responses. |
BackdropWebTestCase:: |
protected | property | The current user logged in using the internal browser. |
BackdropWebTestCase:: |
protected | property | The headers of the page currently loaded in the internal browser. |
BackdropWebTestCase:: |
protected | property | Whether the files were copied to the test files directory. |
BackdropWebTestCase:: |
protected | property | The parsed version of the page. |
BackdropWebTestCase:: |
protected | property | The handle of the current cURL connection. |
BackdropWebTestCase:: |
protected | property | The cookies of the page currently loaded in the internal browser. |
BackdropWebTestCase:: |
protected | property | The current cookie file used by cURL. |
BackdropWebTestCase:: |
protected | property | The content of the page currently loaded in the internal browser. |
BackdropWebTestCase:: |
protected | property | The value of the Backdrop.settings JavaScript variable for the page currently loaded in the internal browser. |
BackdropWebTestCase:: |
protected | property | Additional cURL options. |
BackdropTestCase:: |
protected | function | Logs a verbose message in a text file. |
BackdropTestCase:: |
public | function | Run all tests in this class. |
BackdropTestCase:: |
public static | function | Generates a random string of ASCII characters of codes 32 to 126. |
BackdropTestCase:: |
public static | function | Generates a random string containing letters and numbers. |
BackdropTestCase:: |
protected | function | Generates a database prefix for running tests. |
BackdropTestCase:: |
protected | function | Fire an assertion that is always positive. |
BackdropTestCase:: |
public static | function | Store an assertion from outside the testing context. |
BackdropTestCase:: |
public static | function | Returns the database connection to the site running Simpletest. |
BackdropTestCase:: |
protected | function | Cycles through backtrace until the first non-assertion method is found. |
BackdropTestCase:: |
public static | function | Converts a list of possible parameters into a stack of permutations. |
BackdropTestCase:: |
protected | function | Fire an assertion that is always negative. |
BackdropTestCase:: |
protected | function | Handle exceptions. |
BackdropTestCase:: |
public | function | Handle errors during test runs. |
BackdropTestCase:: |
protected | function | Fire an error assertion. |
BackdropTestCase:: |
public static | function | Delete an assertion record by message ID. |
BackdropTestCase:: |
protected | function | Checks the matching requirements for BackdropTestCase. |
BackdropTestCase:: |
protected | function | Check to see if a value is not false (not an empty string, 0, NULL, or FALSE). |
BackdropTestCase:: |
protected | function | Check to see if a value is NULL. |
BackdropTestCase:: |
protected | function | Check to see if a value is not NULL. |
BackdropTestCase:: |
protected | function | Check to see if two values are not identical. |
BackdropTestCase:: |
protected | function | Check to see if two values are not equal. |
BackdropTestCase:: |
protected | function | Check to see if two values are identical. |
BackdropTestCase:: |
protected | function | Check to see if a value is false (an empty string, 0, NULL, or FALSE). |
BackdropTestCase:: |
protected | function | Check to see if two values are equal. |
BackdropTestCase:: |
protected | function | Internal helper: stores the assert. |
BackdropTestCase:: |
protected | property | URL to the verbose output file directory. |
BackdropTestCase:: |
protected | property | Time limit for the test. |
BackdropTestCase:: |
protected | property | The test run ID. |
BackdropTestCase:: |
protected | property | This class is skipped when looking for the source of an assertion. |
BackdropTestCase:: |
protected | property | |
BackdropTestCase:: |
protected | property | |
BackdropTestCase:: |
protected | property | Flag to indicate whether the test has been set up. |
BackdropTestCase:: |
public | property | Current results of this test case. |
BackdropTestCase:: |
protected | property | The original file directory, before it was changed for testing purposes. |
BackdropTestCase:: |
protected | property | The original config directory array, before changing for testing purposes. |
BackdropTestCase:: |
protected | property | HTTP authentication method |
BackdropTestCase:: |
protected | property | HTTP authentication credentials (<username>:<password>). |
BackdropTestCase:: |
protected | property | The file directory for this test's files. Usually matches $databasePrefix. |
BackdropTestCase:: |
protected | property | The database prefix of this test run. |
BackdropTestCase:: |
protected | property | Assertions thrown in that test case. |