class ContentUICrud in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 6.3 tests/content.crud.test \ContentUICrud
Hierarchy
- class \DrupalTestCase
- class \DrupalWebTestCase
- class \ContentCrudTestCase
- class \ContentUICrud
- class \ContentCrudTestCase
- class \DrupalWebTestCase
Expanded class hierarchy of ContentUICrud
File
- tests/
content.crud.test, line 642
View source
class ContentUICrud extends ContentCrudTestCase {
public static function getInfo() {
return array(
'name' => t('Admin UI'),
'description' => t('Tests the CRUD (create, read, update, delete) operations for content fields via the UI. <strong>Requires <a href="@schema_link">Schema module</a>.</strong>', array(
'@schema_link' => 'http://www.drupal.org/project/schema',
)),
'group' => t('CCK'),
);
}
function setUp() {
parent::setUp('fieldgroup');
$this
->loginWithPermissions();
}
function testAddFieldUI() {
// Add a content type with a random name (to avoid schema module problems).
$type1 = 'simpletest' . mt_rand();
$type1_name = $this
->randomName(10);
$edit = array(
'type' => $type1,
'name' => $type1_name,
);
$this
->drupalPost('admin/content/types/add', $edit, 'Save content type');
$admin_type1_url = 'admin/content/node-type/' . $type1;
// Create a text field via the UI.
$field_name = strtolower($this
->randomName(10));
$field_label = $this
->randomName(10);
$edit = array(
'_add_new_field[label]' => $field_label,
'_add_new_field[field_name]' => $field_name,
'_add_new_field[type]' => 'text',
'_add_new_field[widget_type]' => 'text_textfield',
);
$this
->drupalPost($admin_type1_url . '/fields', $edit, 'Save');
$this
->assertRaw('These settings apply only to the <em>' . $field_label . '</em> field', 'Field settings page displayed');
$this
->assertRaw('Size of textfield', 'Field and widget types correct.');
$this
->assertNoRaw('Change basic information', 'No basic information displayed');
$field_name = 'field_' . $field_name;
$edit = array();
// POST to the page without reloading.
$this
->drupalPost(NULL, $edit, 'Save field settings');
$this
->assertRaw('Added field <em>' . $field_label . '</em>.', 'Field settings saved');
$field_type1_url = $admin_type1_url . '/fields/' . $field_name;
$this
->assertRaw($field_type1_url, 'Field displayed on overview.');
// Check the schema - the values should be in the per-type table.
$this
->assertSchemaMatchesTables(array(
'per_type' => array(
$type1 => array(
$field_name => array(
'value',
),
),
),
));
// Add a second content type.
$type2 = 'simpletest' . mt_rand();
$type2_name = $this
->randomName(10);
$edit = array(
'type' => $type2,
'name' => $type2_name,
);
$this
->drupalPost('admin/content/types/add', $edit, 'Save content type');
$admin_type2_url = 'admin/content/node-type/' . $type2;
// Add the same field to the second content type.
$edit = array(
'_add_existing_field[label]' => $field_label,
'_add_existing_field[field_name]' => $field_name,
'_add_existing_field[widget_type]' => 'text_textarea',
);
$this
->drupalPost($admin_type2_url . '/fields', $edit, 'Save');
$this
->assertRaw('These settings apply only to the <em>' . $field_label . '</em> field', 'Field settings page displayed');
$this
->assertRaw('Rows', 'Field and widget types correct.');
$this
->assertNoRaw('Change basic information', 'No basic information displayed');
$edit = array();
$this
->drupalPost(NULL, $edit, 'Save field settings');
$this
->assertRaw('Added field <em>' . $field_label . '</em>.', 'Field settings saved');
$field_type2_url = $admin_type2_url . '/fields/' . $field_name;
$this
->assertRaw($field_type2_url, 'Field displayed on overview.');
// Check that a separate table is created for the shared field, and
// that it's values are no longer in the per-type tables.
$this
->assertSchemaMatchesTables(array(
'per_field' => array(
$field_name => array(
$field_name => array(
'value',
),
),
),
'per_type' => array(
$type1 => array(),
$type2 => array(),
),
));
// Chancge the basic settings for this field.
$edit = array();
$this
->drupalPost($field_type2_url, $edit, 'Change basic information');
$this
->assertRaw('Edit basic information', 'Basic information form displayed');
$field_label2 = $this
->randomName(10);
$edit = array(
'label' => $field_label2,
'widget_type' => 'text_textfield',
);
$this
->drupalPost(NULL, $edit, 'Continue');
$this
->assertRaw('These settings apply only to the <em>' . $field_label2 . '</em> field', 'Label changed');
$this
->assertRaw('Size of textfield', 'Widget changed');
$edit = array();
// POST to the page without reloading.
$this
->drupalPost(NULL, $edit, 'Save field settings');
$this
->assertRaw('Saved field <em>' . $field_label2 . '</em>.', 'Field settings saved');
// Add a group to the second content type.
$group1_name = strtolower($this
->randomName(10));
$group1_label = $this
->randomName(10);
$edit = array(
'_add_new_group[label]' => $group1_label,
'_add_new_group[group_name]' => $group1_name,
);
$this
->drupalPost($admin_type2_url . '/fields', $edit, 'Save');
$group1_name = 'group_' . $group1_name;
$this
->assertRaw($admin_type2_url . '/groups/' . $group1_name, 'Group created');
// Remove the field from the second type.
$edit = array();
$this
->drupalPost($field_type2_url . '/remove', $edit, 'Remove');
$this
->assertRaw('Removed field <em>' . $field_label2 . '</em> from <em>' . $type2_name . '</em>', 'Field removed');
$this
->assertNoRaw($field_type2_url, 'Field not displayed on overview.');
// Check the schema - the values should be in the per-type table.
$this
->assertSchemaMatchesTables(array(
'per_type' => array(
$type1 => array(
$field_name => array(
'value',
),
),
),
));
// Add a new field, an existing field, and a group in the same submit.
$field2_label = $this
->randomName(10);
$field2_name = strtolower($this
->randomName(10));
$group2_label = $this
->randomName(10);
$group2_name = strtolower($this
->randomName(10));
$edit = array(
'_add_new_field[label]' => $field2_label,
'_add_new_field[field_name]' => $field2_name,
'_add_new_field[type]' => 'text',
'_add_new_field[widget_type]' => 'text_textfield',
'_add_new_field[parent]' => $group1_name,
'_add_existing_field[label]' => $field_label,
'_add_existing_field[field_name]' => $field_name,
'_add_existing_field[widget_type]' => 'text_textarea',
'_add_existing_field[parent]' => '_add_new_group',
'_add_new_group[label]' => $group2_label,
'_add_new_group[group_name]' => $group2_name,
);
$this
->drupalPost($admin_type2_url . '/fields', $edit, 'Save');
$this
->assertRaw('These settings apply only to the <em>' . $field2_label . '</em> field', 'Field settings page for new field displayed');
// Submit new field settings
$edit = array();
$this
->drupalPost(NULL, $edit, 'Save field settings');
$this
->assertRaw('Added field <em>' . $field2_label . '</em>.', 'Field settings for new field saved');
$this
->assertRaw('These settings apply only to the <em>' . $field_label . '</em> field', 'Field settings page for existing field displayed');
// Submit existing field settings
$edit = array();
$this
->drupalPost(NULL, $edit, 'Save field settings');
$this
->assertRaw('Added field <em>' . $field_label . '</em>.', 'Field settings for existing field saved');
$field2_name = 'field_' . $field2_name;
$field2_type2_url = $admin_type2_url . '/fields/' . $field2_name;
$this
->assertRaw($field2_type2_url, 'New field displayed in overview');
$this
->assertRaw($field_type2_url, 'Existing field displayed in overview');
$group2_name = 'group_' . $group2_name;
$this
->assertRaw($admin_type2_url . '/groups/' . $group2_name, 'New group displayed in overview');
// Check Parenting
$groups = fieldgroup_groups($type2, FALSE, TRUE);
$this
->assertTrue(isset($groups[$group1_name]['fields'][$field2_name]), 'New field in correct group');
$this
->assertTrue(isset($groups[$group2_name]['fields'][$field_name]), 'Existing field in correct group');
$this
->assertFieldByXPath('//select[@id="edit-' . strtr($field2_name, '_', '-') . '-parent"]//option[@selected]', $group1_name, 'Parenting for new field correct in overview');
$this
->assertFieldByXPath('//select[@id="edit-' . strtr($field_name, '_', '-') . '-parent"]//option[@selected]', $group2_name, 'Parenting for existing field correct in overview');
// Check the schema : field1 is shared, field2 is in the per-type table.
$this
->assertSchemaMatchesTables(array(
'per_field' => array(
$field_name => array(
$field_name => array(
'value',
),
),
),
'per_type' => array(
$type1 => array(),
$type2 => array(
$field2_name => array(
'value',
),
),
),
));
// TODO : test validation failures...
// TODO : test ordering and extra fields...
}
function testFieldContentUI() {
// Create a content type with a field
$type1 = 'simpletest' . mt_rand();
$type1_obj = $this
->drupalCreateContentType(array(
'type' => $type1,
));
$admin_type1_url = 'admin/content/node-type/' . $type1;
$field_name = strtolower($this
->randomName(10));
$field_url = 'field_' . $field_name;
$field = $this
->createFieldText(array(
'text_processing' => 1,
'multiple' => 0,
'field_name' => $field_url,
), $type1_obj);
// Save a node with content in the text field
$edit = array();
$edit['title'] = $this
->randomName(20);
$edit['body'] = $this
->randomName(20);
$value = $this
->randomName(20);
$edit[$field_url . '[0][value]'] = $value;
$this
->drupalPost('node/add/' . $type1, $edit, 'Save');
$node = node_load(array(
'title' => $edit['title'],
));
$this
->drupalGet('node/' . $node->nid);
$this
->assertText($value, 'Textfield value saved and displayed');
// Alter the field to have unlimited values
$edit = array();
$edit['multiple'] = '1';
$this
->drupalPost($admin_type1_url . '/fields/' . $field_url, $edit, 'Save field settings');
// Save a node with content in multiple text fields
$edit = array();
$edit['title'] = $this
->randomName(20);
$edit['body'] = $this
->randomName(20);
// Add more textfields (non-JS).
$this
->drupalPost('node/add/' . $type1, $edit, "Add another item");
$this
->drupalPost(NULL, $edit, "Add another item");
$value1 = $this
->randomName(20);
$value2 = $this
->randomName(20);
$value3 = $this
->randomName(20);
$edit[$field_url . '[0][value]'] = $value1;
$edit[$field_url . '[1][value]'] = $value2;
$edit[$field_url . '[2][value]'] = $value3;
// This will fail if we don't have at least 3 textfields.
$this
->drupalPost(NULL, $edit, 'Save');
$node = node_load(array(
'title' => $edit['title'],
));
$this
->drupalGet('node/' . $node->nid);
$this
->assertText($value3, '3rd textfield value saved and displayed');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContentCrudTestCase:: |
property | |||
ContentCrudTestCase:: |
property | |||
ContentCrudTestCase:: |
property | |||
ContentCrudTestCase:: |
property | |||
ContentCrudTestCase:: |
property | |||
ContentCrudTestCase:: |
function | Creates a number of content types with predictable names (simpletest_t1 ... simpletest_tN) These content types can later be accessed via $this->content_types[0 ... N-1] | ||
ContentCrudTestCase:: |
function | Creates a number of nodes of each acquired content type. Remember to call acquireContentTypes() before calling this, else the content types won't exist. | ||
ContentCrudTestCase:: |
function | Checks that the output from node_load is missing certain fields | ||
ContentCrudTestCase:: |
function | Checks that after a node is saved using node_save, the values to be saved match up with the output from node_load. | ||
ContentCrudTestCase:: |
function | Checks that the output from node_load matches the expected values. | ||
ContentCrudTestCase:: |
function | Checks that the database itself and the reported database schema match the expected columns for the given tables. | ||
ContentCrudTestCase:: |
function | Creates a field instance with a predictable name. Also makes all future calls to functions which take an optional field use this one as the default. | ||
ContentCrudTestCase:: |
function | Creates a textfield instance. Identical to createField() except it ensures that the text module is enabled, and adds default settings of type (text) and widget_type (text_textfield) if they are not given in $settings. @sa createField() | ||
ContentCrudTestCase:: |
function | Creates random values for a text field | ||
ContentCrudTestCase:: |
function | Deletes an instance of a field. | ||
ContentCrudTestCase:: |
function | Creates a user / role with certain permissions and then logs in as that user | ||
ContentCrudTestCase:: |
function | Makes a copy of a field instance on a different content type, effectively sharing the field with a new content type. Also makes all future calls to functions which take an optional field use the shared one as the default. | ||
ContentCrudTestCase:: |
function | Updates a field instance. Also makes all future calls to functions which take an optional field use the updated one as the default. | ||
ContentCrudTestCase:: |
function | Helper function for assertSchemaMatchesTables Checks that the database and schema for the given table contain only the expected fields. | ||
ContentCrudTestCase:: |
function | Helper function for assertSchemaMatchesTables Checks that the given database table does NOT exist | ||
ContentCrudTestCase:: |
function | Helper function for assertNodeSaveValues. Recursively checks that all the keys of a table are present in a second and have the same value. | ||
ContentUICrud:: |
public static | function | ||
ContentUICrud:: |
function |
Enable CCK, Text, and Schema modules. Overrides ContentCrudTestCase:: |
||
ContentUICrud:: |
function | |||
ContentUICrud:: |
function | |||
DrupalTestCase:: |
protected | property | Assertions thrown in that test case. | |
DrupalTestCase:: |
protected | property | The database prefix of this test run. | |
DrupalTestCase:: |
protected | property | The original file directory, before it was changed for testing purposes. | |
DrupalTestCase:: |
protected | property | The original database prefix, before it was changed for testing purposes. | |
DrupalTestCase:: |
public | property | Current results of this test case. | |
DrupalTestCase:: |
protected | property | This class is skipped when looking for the source of an assertion. | |
DrupalTestCase:: |
protected | property | The test run ID. | |
DrupalTestCase:: |
protected | property | Time limit for the test. | |
DrupalTestCase:: |
protected | function | Internal helper: stores the assert. | |
DrupalTestCase:: |
protected | function | Check to see if two values are equal. | |
DrupalTestCase:: |
protected | function | Check to see if a value is false (an empty string, 0, NULL, or FALSE). | |
DrupalTestCase:: |
protected | function | Check to see if two values are identical. | |
DrupalTestCase:: |
protected | function | Check to see if two values are not equal. | |
DrupalTestCase:: |
protected | function | Check to see if two values are not identical. | |
DrupalTestCase:: |
protected | function | Check to see if a value is not NULL. | |
DrupalTestCase:: |
protected | function | Check to see if a value is NULL. | |
DrupalTestCase:: |
protected | function | Check to see if a value is not false (not an empty string, 0, NULL, or FALSE). | |
DrupalTestCase:: |
public static | function | Delete an assertion record by message ID. | |
DrupalTestCase:: |
protected | function | Fire an error assertion. | |
DrupalTestCase:: |
public | function | Handle errors during test runs. | |
DrupalTestCase:: |
protected | function | Handle exceptions. | |
DrupalTestCase:: |
protected | function | Fire an assertion that is always negative. | |
DrupalTestCase:: |
public static | function | Converts a list of possible parameters into a stack of permutations. | |
DrupalTestCase:: |
protected | function | Cycles through backtrace until the first non-assertion method is found. | |
DrupalTestCase:: |
public static | function | Store an assertion from outside the testing context. | |
DrupalTestCase:: |
protected | function | Fire an assertion that is always positive. | |
DrupalTestCase:: |
public static | function | Generates a random string containing letters and numbers. | |
DrupalTestCase:: |
public static | function | Generates a random string of ASCII characters of codes 32 to 126. | |
DrupalTestCase:: |
public | function | Run all tests in this class. | |
DrupalTestCase:: |
protected | function | Logs verbose message in a text file. | |
DrupalWebTestCase:: |
protected | property | Additional cURL options. | |
DrupalWebTestCase:: |
protected | property | The content of the page currently loaded in the internal browser. | |
DrupalWebTestCase:: |
protected | property | The current cookie file used by cURL. | |
DrupalWebTestCase:: |
protected | property | The handle of the current cURL connection. | |
DrupalWebTestCase:: |
protected | property | The value of the Drupal.settings JavaScript variable for the page currently loaded in the internal browser. | |
DrupalWebTestCase:: |
protected | property | The parsed version of the page. | |
DrupalWebTestCase:: |
protected | property | Whether the files were copied to the test files directory. | |
DrupalWebTestCase:: |
protected | property | The headers of the page currently loaded in the internal browser. | |
DrupalWebTestCase:: |
protected | property | HTTP authentication credentials (<username>:<password>). | |
DrupalWebTestCase:: |
protected | property | HTTP authentication method | |
DrupalWebTestCase:: |
protected | property | The current user logged in using the internal browser. | |
DrupalWebTestCase:: |
protected | property | The original user, before it was changed to a clean uid = 1 for testing purposes. | |
DrupalWebTestCase:: |
protected | property | The content of the page currently loaded in the internal browser (plain text version). | |
DrupalWebTestCase:: |
protected | property | The profile to install as a basis for testing. | |
DrupalWebTestCase:: |
protected | property | The number of redirects followed during the handling of a request. | |
DrupalWebTestCase:: |
protected | property | The current session ID, if available. | |
DrupalWebTestCase:: |
protected | property | The current session name, if available. | |
DrupalWebTestCase:: |
protected | property | The URL currently loaded in the internal browser. | |
DrupalWebTestCase:: |
protected | function | Asserts that a field exists with the given name or id. | |
DrupalWebTestCase:: |
protected | function | Asserts that a field exists in the current page with the given id and value. | |
DrupalWebTestCase:: |
protected | function | Asserts that a field exists in the current page with the given name and value. | |
DrupalWebTestCase:: |
protected | function | Asserts that a field exists in the current page by the given XPath. | |
DrupalWebTestCase:: |
protected | function | Asserts that a checkbox field in the current page is checked. | |
DrupalWebTestCase:: |
protected | function | Pass if a link with the specified label is found, and optional with the specified index. | |
DrupalWebTestCase:: |
protected | function | Pass if a link containing a given href (part) is found. | |
DrupalWebTestCase:: |
protected | function | Asserts that the most recently sent e-mail message has the given value. | |
DrupalWebTestCase:: |
protected | function | Asserts that the most recently sent e-mail message has the pattern in it. | |
DrupalWebTestCase:: |
protected | function | Asserts that the most recently sent e-mail message has the string in it. | |
DrupalWebTestCase:: |
protected | function | Asserts that each HTML ID is used for just a single element. | |
DrupalWebTestCase:: |
protected | function | Asserts that a field does not exist with the given name or id. | |
DrupalWebTestCase:: |
protected | function | Asserts that a field does not exist with the given id and value. | |
DrupalWebTestCase:: |
protected | function | Asserts that a field does not exist with the given name and value. | |
DrupalWebTestCase:: |
protected | function | Asserts that a field does not exist in the current page by the given XPath. | |
DrupalWebTestCase:: |
protected | function | Asserts that a checkbox field in the current page is not checked. | |
DrupalWebTestCase:: |
protected | function | Pass if a link with the specified label is not found. | |
DrupalWebTestCase:: |
protected | function | Pass if a link containing a given href (part) is not found. | |
DrupalWebTestCase:: |
protected | function | Asserts that a select option in the current page is not checked. | |
DrupalWebTestCase:: |
protected | function | Will trigger a pass if the perl regex pattern is not present in raw content. | |
DrupalWebTestCase:: |
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. | |
DrupalWebTestCase:: |
protected | function | Asserts the page did not return the specified response code. | |
DrupalWebTestCase:: |
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. | |
DrupalWebTestCase:: |
protected | function | Pass if the page title is not the given string. | |
DrupalWebTestCase:: |
protected | function | Pass if the text is found MORE THAN ONCE on the text version of the page. | |
DrupalWebTestCase:: |
protected | function | Asserts that a select option in the current page is checked. | |
DrupalWebTestCase:: |
protected | function | Will trigger a pass if the Perl regex pattern is found in the raw content. | |
DrupalWebTestCase:: |
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. | |
DrupalWebTestCase:: |
protected | function | Asserts the page responds with the specified response code. | |
DrupalWebTestCase:: |
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. | |
DrupalWebTestCase:: |
protected | function | Helper for assertText and assertNoText. | |
DrupalWebTestCase:: |
protected | function | Pass if the page title is the given string. | |
DrupalWebTestCase:: |
protected | function | Pass if the text is found ONLY ONCE on the text version of the page. | |
DrupalWebTestCase:: |
protected | function | Helper for assertUniqueText and assertNoUniqueText. | |
DrupalWebTestCase:: |
protected | function | Pass if the internal browser's URL matches the given path. | |
DrupalWebTestCase:: |
protected | function | Builds an XPath query. | |
DrupalWebTestCase:: |
protected | function | 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:: |
protected | function | Check to make sure that the array of permissions are valid. | |
DrupalWebTestCase:: |
protected | function | Follows a link by name. | |
DrupalWebTestCase:: |
protected | function | Helper function: construct an XPath for the given set of attributes and value. | |
DrupalWebTestCase:: |
protected | function | Runs cron in the Drupal installed by Simpletest. | |
DrupalWebTestCase:: |
protected | function | Close the cURL handler and unset the handler. | |
DrupalWebTestCase:: |
protected | function | Initializes and executes a cURL request. | |
DrupalWebTestCase:: |
protected | function | Reads headers and registers errors received from the tested site. | |
DrupalWebTestCase:: |
protected | function | Initializes the cURL connection. | |
DrupalWebTestCase:: |
protected | function | Compare two files based on size and file name. | |
DrupalWebTestCase:: |
protected | function | Creates a custom content type based on default settings. | |
DrupalWebTestCase:: |
protected | function | Creates a node based on default settings. | |
DrupalWebTestCase:: |
protected | function | Internal helper function; Create a role with specified permissions. | |
DrupalWebTestCase:: |
protected | function | Create a user with a given set of permissions. The permissions correspond to the names given on the privileges page. | |
DrupalWebTestCase:: |
protected | function | Retrieves a Drupal path or an absolute path. | |
DrupalWebTestCase:: |
protected | function | Gets the current raw HTML of requested page. | |
DrupalWebTestCase:: |
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… | |
DrupalWebTestCase:: |
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… | |
DrupalWebTestCase:: |
protected | function | Gets an array containing all e-mails sent during this test case. | |
DrupalWebTestCase:: |
function | Get a node from the database based on its title. | ||
DrupalWebTestCase:: |
protected | function | Gets the value of the Drupal.settings JavaScript variable for the currently loaded page. | |
DrupalWebTestCase:: |
protected | function | Get a list files that can be used in tests. | |
DrupalWebTestCase:: |
protected | function | Generate a token for the currently logged in user. | |
DrupalWebTestCase:: |
protected | function | Retrieves only the headers for a Drupal path or an absolute path. | |
DrupalWebTestCase:: |
protected | function | Log in a user with the internal browser. | |
DrupalWebTestCase:: |
protected | function | ||
DrupalWebTestCase:: |
protected | function | Execute a POST request on a Drupal page. It will be done as usual POST request with SimpleBrowser. | |
DrupalWebTestCase:: |
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. | |
DrupalWebTestCase:: |
protected | function | Sets the value of the Drupal.settings JavaScript variable for the currently loaded page. | |
DrupalWebTestCase:: |
protected | function | Takes a path and returns an absolute path. | |
DrupalWebTestCase:: |
protected | function | Get all option elements, including nested options, in a select. | |
DrupalWebTestCase:: |
protected | function | Get the selected value from a select field. | |
DrupalWebTestCase:: |
protected | function | Get the current url from the cURL handler. | |
DrupalWebTestCase:: |
protected | function | 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:: |
protected | function | Parse content returned from curlExec using DOM and SimpleXML. | |
DrupalWebTestCase:: |
protected | function | Refresh the in-memory set of variables. Useful after a page request is made that changes a variable in a different thread. | |
DrupalWebTestCase:: |
protected | function | Reset all data structures after having enabled new modules. | |
DrupalWebTestCase:: |
protected | function | Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix. | |
DrupalWebTestCase:: |
protected | function | Outputs to verbose the most recent $count emails sent. | |
DrupalWebTestCase:: |
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. | |
DrupalWebTestCase:: |
function |
Constructor for DrupalWebTestCase. Overrides DrupalTestCase:: |