@@ -632,7 +632,7 @@ abstract class DrupalTestCase {
|
||||
* 'one' => array(0, 1),
|
||||
* 'two' => array(2, 3),
|
||||
* );
|
||||
* $permutations = $this->permute($parameters);
|
||||
* $permutations = DrupalTestCase::generatePermutations($parameters)
|
||||
* // Result:
|
||||
* $permutations == array(
|
||||
* array('one' => 0, 'two' => 2),
|
||||
@@ -1685,13 +1685,20 @@ class DrupalWebTestCase extends DrupalTestCase {
|
||||
|
||||
if (!isset($this->curlHandle)) {
|
||||
$this->curlHandle = curl_init();
|
||||
|
||||
// Some versions/configurations of cURL break on a NULL cookie jar, so
|
||||
// supply a real file.
|
||||
if (empty($this->cookieFile)) {
|
||||
$this->cookieFile = $this->public_files_directory . '/cookie.jar';
|
||||
}
|
||||
|
||||
$curl_options = array(
|
||||
CURLOPT_COOKIEJAR => $this->cookieFile,
|
||||
CURLOPT_URL => $base_url,
|
||||
CURLOPT_FOLLOWLOCATION => FALSE,
|
||||
CURLOPT_RETURNTRANSFER => TRUE,
|
||||
CURLOPT_SSL_VERIFYPEER => FALSE, // Required to make the tests run on https.
|
||||
CURLOPT_SSL_VERIFYHOST => FALSE, // Required to make the tests run on https.
|
||||
CURLOPT_SSL_VERIFYPEER => FALSE, // Required to make the tests run on HTTPS.
|
||||
CURLOPT_SSL_VERIFYHOST => FALSE, // Required to make the tests run on HTTPS.
|
||||
CURLOPT_HEADERFUNCTION => array(&$this, 'curlHeaderCallback'),
|
||||
CURLOPT_USERAGENT => $this->databasePrefix,
|
||||
);
|
||||
@@ -1699,7 +1706,12 @@ class DrupalWebTestCase extends DrupalTestCase {
|
||||
$curl_options[CURLOPT_HTTPAUTH] = $this->httpauth_method;
|
||||
$curl_options[CURLOPT_USERPWD] = $this->httpauth_credentials;
|
||||
}
|
||||
curl_setopt_array($this->curlHandle, $this->additionalCurlOptions + $curl_options);
|
||||
// curl_setopt_array() returns FALSE if any of the specified options
|
||||
// cannot be set, and stops processing any further options.
|
||||
$result = curl_setopt_array($this->curlHandle, $this->additionalCurlOptions + $curl_options);
|
||||
if (!$result) {
|
||||
throw new Exception('One or more cURL options could not be set.');
|
||||
}
|
||||
|
||||
// By default, the child session name should be the same as the parent.
|
||||
$this->session_name = session_name();
|
||||
@@ -2337,9 +2349,16 @@ class DrupalWebTestCase extends DrupalTestCase {
|
||||
if (isset($edit[$name])) {
|
||||
switch ($type) {
|
||||
case 'text':
|
||||
case 'tel':
|
||||
case 'textarea':
|
||||
case 'url':
|
||||
case 'number':
|
||||
case 'range':
|
||||
case 'color':
|
||||
case 'hidden':
|
||||
case 'password':
|
||||
case 'email':
|
||||
case 'search':
|
||||
$post[$name] = $edit[$name];
|
||||
unset($edit[$name]);
|
||||
break;
|
||||
@@ -2686,10 +2705,10 @@ class DrupalWebTestCase extends DrupalTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current url from the cURL handler.
|
||||
* Get the current URL from the cURL handler.
|
||||
*
|
||||
* @return
|
||||
* The current url.
|
||||
* The current URL.
|
||||
*/
|
||||
protected function getUrl() {
|
||||
return $this->url;
|
||||
|
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
function hook_simpletest_alter(&$groups) {
|
||||
// An alternative session handler module would not want to run the original
|
||||
// Session https handling test because it checks the sessions table in the
|
||||
// Session HTTPS handling test because it checks the sessions table in the
|
||||
// database.
|
||||
unset($groups['Session']['testHttpsSession']);
|
||||
}
|
||||
|
@@ -40,7 +40,6 @@ files[] = tests/update.test
|
||||
files[] = tests/xmlrpc.test
|
||||
files[] = tests/upgrade/upgrade.test
|
||||
files[] = tests/upgrade/upgrade.comment.test
|
||||
files[] = tests/upgrade/update.field.test
|
||||
files[] = tests/upgrade/upgrade.filter.test
|
||||
files[] = tests/upgrade/upgrade.forum.test
|
||||
files[] = tests/upgrade/upgrade.locale.test
|
||||
@@ -49,13 +48,15 @@ files[] = tests/upgrade/upgrade.node.test
|
||||
files[] = tests/upgrade/upgrade.taxonomy.test
|
||||
files[] = tests/upgrade/upgrade.trigger.test
|
||||
files[] = tests/upgrade/upgrade.translatable.test
|
||||
files[] = tests/upgrade/update.trigger.test
|
||||
files[] = tests/upgrade/upgrade.upload.test
|
||||
files[] = tests/upgrade/update.user.test
|
||||
files[] = tests/upgrade/upgrade.user.test
|
||||
files[] = tests/upgrade/update.aggregator.test
|
||||
files[] = tests/upgrade/update.trigger.test
|
||||
files[] = tests/upgrade/update.field.test
|
||||
files[] = tests/upgrade/update.user.test
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ package = Testing
|
||||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -7,7 +7,6 @@
|
||||
|
||||
/**
|
||||
* Implements hook_menu().
|
||||
* @return unknown_type
|
||||
*/
|
||||
function ajax_forms_test_menu() {
|
||||
$items = array();
|
||||
@@ -94,9 +93,6 @@ function ajax_forms_test_simple_form_checkbox_callback($form, $form_state) {
|
||||
|
||||
/**
|
||||
* Form to display the Ajax Commands.
|
||||
* @param $form
|
||||
* @param $form_state
|
||||
* @return unknown_type
|
||||
*/
|
||||
function ajax_forms_test_ajax_commands_form($form, &$form_state) {
|
||||
$form = array();
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -1847,14 +1847,14 @@ class DrupalRenderTestCase extends DrupalWebTestCase {
|
||||
class ValidUrlTestCase extends DrupalUnitTestCase {
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Valid Url',
|
||||
'description' => "Performs tests on Drupal's valid url function.",
|
||||
'name' => 'Valid URL',
|
||||
'description' => "Performs tests on Drupal's valid URL function.",
|
||||
'group' => 'System'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test valid absolute urls.
|
||||
* Test valid absolute URLs.
|
||||
*/
|
||||
function testValidAbsolute() {
|
||||
$url_schemes = array('http', 'https', 'ftp');
|
||||
@@ -1889,7 +1889,7 @@ class ValidUrlTestCase extends DrupalUnitTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test invalid absolute urls.
|
||||
* Test invalid absolute URLs.
|
||||
*/
|
||||
function testInvalidAbsolute() {
|
||||
$url_schemes = array('http', 'https', 'ftp');
|
||||
@@ -1909,7 +1909,7 @@ class ValidUrlTestCase extends DrupalUnitTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test valid relative urls.
|
||||
* Test valid relative URLs.
|
||||
*/
|
||||
function testValidRelative() {
|
||||
$valid_relative_urls = array(
|
||||
@@ -1930,7 +1930,7 @@ class ValidUrlTestCase extends DrupalUnitTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test invalid relative urls.
|
||||
* Test invalid relative URLs.
|
||||
*/
|
||||
function testInvalidRelative() {
|
||||
$invalid_relative_urls = array(
|
||||
@@ -2540,12 +2540,12 @@ class DrupalAddFeedTestCase extends DrupalWebTestCase {
|
||||
'output_url' => url($path, array('absolute' => TRUE)),
|
||||
'title' => '',
|
||||
),
|
||||
'external url without title' => array(
|
||||
'external URL without title' => array(
|
||||
'input_url' => $external_url,
|
||||
'output_url' => $external_url,
|
||||
'title' => '',
|
||||
),
|
||||
'local url without title' => array(
|
||||
'local URL without title' => array(
|
||||
'input_url' => $fully_qualified_local_url,
|
||||
'output_url' => $fully_qualified_local_url,
|
||||
'title' => '',
|
||||
@@ -2555,12 +2555,12 @@ class DrupalAddFeedTestCase extends DrupalWebTestCase {
|
||||
'output_url' => url($path_for_title, array('absolute' => TRUE)),
|
||||
'title' => $this->randomName(12),
|
||||
),
|
||||
'external url with title' => array(
|
||||
'external URL with title' => array(
|
||||
'input_url' => $external_for_title,
|
||||
'output_url' => $external_for_title,
|
||||
'title' => $this->randomName(12),
|
||||
),
|
||||
'local url with title' => array(
|
||||
'local URL with title' => array(
|
||||
'input_url' => $fully_qualified_for_title,
|
||||
'output_url' => $fully_qualified_for_title,
|
||||
'title' => $this->randomName(12),
|
||||
@@ -2581,9 +2581,36 @@ class DrupalAddFeedTestCase extends DrupalWebTestCase {
|
||||
* Create a pattern representing the RSS feed in the page.
|
||||
*/
|
||||
function urlToRSSLinkPattern($url, $title = '') {
|
||||
// Escape any regular expression characters in the url ('?' is the worst).
|
||||
// Escape any regular expression characters in the URL ('?' is the worst).
|
||||
$url = preg_replace('/([+?.*])/', '[$0]', $url);
|
||||
$generated_pattern = '%<link +rel="alternate" +type="application/rss.xml" +title="' . $title . '" +href="' . $url . '" */>%';
|
||||
return $generated_pattern;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for theme_feed_icon().
|
||||
*/
|
||||
class FeedIconTest extends DrupalWebTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Feed icon',
|
||||
'description' => 'Check escaping of theme_feed_icon()',
|
||||
'group' => 'System',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that special characters are correctly escaped. Test for issue #1211668.
|
||||
*/
|
||||
function testFeedIconEscaping() {
|
||||
$variables = array();
|
||||
$variables['url'] = 'node';
|
||||
$variables['title'] = '<>&"\'';
|
||||
$text = theme_feed_icon($variables);
|
||||
preg_match('/title="(.*?)"/', $text, $matches);
|
||||
$this->assertEqual($matches[1], 'Subscribe to &"'', 'theme_feed_icon() escapes reserved HTML characters.');
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -7,8 +7,8 @@ stylesheets[all][] = common_test.css
|
||||
stylesheets[print][] = common_test.print.css
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ package = Testing
|
||||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -2803,14 +2803,17 @@ class DatabaseLoggingTestCase extends DatabaseTestCase {
|
||||
* Test that we can log the existence of a query.
|
||||
*/
|
||||
function testEnableLogging() {
|
||||
Database::startLog('testing');
|
||||
$log = Database::startLog('testing');
|
||||
|
||||
db_query('SELECT name FROM {test} WHERE age > :age', array(':age' => 25))->fetchCol();
|
||||
db_query('SELECT age FROM {test} WHERE name = :name', array(':name' => 'Ringo'))->fetchCol();
|
||||
|
||||
// Trigger a call that does not have file in the backtrace.
|
||||
call_user_func_array('db_query', array('SELECT age FROM {test} WHERE name = :name', array(':name' => 'Ringo')))->fetchCol();
|
||||
|
||||
$queries = Database::getLog('testing', 'default');
|
||||
|
||||
$this->assertEqual(count($queries), 2, t('Correct number of queries recorded.'));
|
||||
$this->assertEqual(count($queries), 3, t('Correct number of queries recorded.'));
|
||||
|
||||
foreach ($queries as $query) {
|
||||
$this->assertEqual($query['caller']['function'], __FUNCTION__, t('Correct function in query log.'));
|
||||
@@ -3746,9 +3749,9 @@ class DatabaseTransactionTestCase extends DatabaseTestCase {
|
||||
class DatabaseNextIdCase extends DrupalWebTestCase {
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => t('Sequences API'),
|
||||
'description' => t('Test the secondary sequences API.'),
|
||||
'group' => t('Database'),
|
||||
'name' => 'Sequences API',
|
||||
'description' => 'Test the secondary sequences API.',
|
||||
'group' => 'Database',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3773,9 +3776,9 @@ class DatabaseNextIdCase extends DrupalWebTestCase {
|
||||
class DatabaseEmptyStatementTestCase extends DrupalWebTestCase {
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => t('Empty statement'),
|
||||
'description' => t('Test the empty pseudo-statement class.'),
|
||||
'group' => t('Database'),
|
||||
'name' => 'Empty statement',
|
||||
'description' => 'Test the empty pseudo-statement class.',
|
||||
'group' => 'Database',
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
dependencies[] = entity_cache_test_dependency
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ package = Testing
|
||||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
//
|
||||
// Presave hooks
|
||||
//
|
||||
/**
|
||||
* @file
|
||||
* Test module for the Entity CRUD API.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_entity_presave().
|
||||
@@ -53,10 +54,6 @@ function entity_crud_hook_test_user_presave() {
|
||||
$_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called');
|
||||
}
|
||||
|
||||
//
|
||||
// Insert hooks
|
||||
//
|
||||
|
||||
/**
|
||||
* Implements hook_entity_insert().
|
||||
*/
|
||||
@@ -106,10 +103,6 @@ function entity_crud_hook_test_user_insert() {
|
||||
$_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called');
|
||||
}
|
||||
|
||||
//
|
||||
// Load hooks
|
||||
//
|
||||
|
||||
/**
|
||||
* Implements hook_entity_load().
|
||||
*/
|
||||
@@ -159,10 +152,6 @@ function entity_crud_hook_test_user_load() {
|
||||
$_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called');
|
||||
}
|
||||
|
||||
//
|
||||
// Update hooks
|
||||
//
|
||||
|
||||
/**
|
||||
* Implements hook_entity_update().
|
||||
*/
|
||||
@@ -212,10 +201,6 @@ function entity_crud_hook_test_user_update() {
|
||||
$_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called');
|
||||
}
|
||||
|
||||
//
|
||||
// Delete hooks
|
||||
//
|
||||
|
||||
/**
|
||||
* Implements hook_entity_delete().
|
||||
*/
|
||||
|
@@ -1,8 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test invocation of hooks when inserting, loading, updating or deleting an
|
||||
* entity. Tested hooks are:
|
||||
* @file
|
||||
* CRUD hook tests for the Entity CRUD API.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Tests invocation of hooks when performing an action.
|
||||
*
|
||||
* Tested hooks are:
|
||||
* - hook_entity_insert()
|
||||
* - hook_entity_load()
|
||||
* - hook_entity_update()
|
||||
@@ -48,7 +54,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test hook invocations for CRUD operations on comments.
|
||||
* Tests hook invocations for CRUD operations on comments.
|
||||
*/
|
||||
public function testCommentHooks() {
|
||||
$node = (object) array(
|
||||
@@ -108,7 +114,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test hook invocations for CRUD operations on files.
|
||||
* Tests hook invocations for CRUD operations on files.
|
||||
*/
|
||||
public function testFileHooks() {
|
||||
$url = 'public://entity_crud_hook_test.file';
|
||||
@@ -154,7 +160,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test hook invocations for CRUD operations on nodes.
|
||||
* Tests hook invocations for CRUD operations on nodes.
|
||||
*/
|
||||
public function testNodeHooks() {
|
||||
$node = (object) array(
|
||||
@@ -200,7 +206,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test hook invocations for CRUD operations on taxonomy terms.
|
||||
* Tests hook invocations for CRUD operations on taxonomy terms.
|
||||
*/
|
||||
public function testTaxonomyTermHooks() {
|
||||
$vocabulary = (object) array(
|
||||
@@ -248,7 +254,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test hook invocations for CRUD operations on taxonomy vocabularies.
|
||||
* Tests hook invocations for CRUD operations on taxonomy vocabularies.
|
||||
*/
|
||||
public function testTaxonomyVocabularyHooks() {
|
||||
$vocabulary = (object) array(
|
||||
@@ -288,7 +294,7 @@ class EntityCrudHookTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test hook invocations for CRUD operations on users.
|
||||
* Tests hook invocations for CRUD operations on users.
|
||||
*/
|
||||
public function testUserHooks() {
|
||||
$edit = array(
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
files[] = file_test.module
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -189,6 +189,38 @@ class FormsTestCase extends DrupalWebTestCase {
|
||||
$this->assertRaw("The form_test_validate_required_form form was submitted successfully.", 'Validation form submitted successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests validation for required textfield element without title.
|
||||
*
|
||||
* Submits a test form containing a textfield form elements without title.
|
||||
* The form is submitted twice, first without value for the required field
|
||||
* and then with value. Each submission is checked for relevant error
|
||||
* messages.
|
||||
*
|
||||
* @see form_test_validate_required_form_no_title()
|
||||
*/
|
||||
function testRequiredTextfieldNoTitle() {
|
||||
$form = $form_state = array();
|
||||
$form = form_test_validate_required_form_no_title($form, $form_state);
|
||||
|
||||
// Attempt to submit the form with no required field set.
|
||||
$edit = array();
|
||||
$this->drupalPost('form-test/validate-required-no-title', $edit, 'Submit');
|
||||
$this->assertNoRaw("The form_test_validate_required_form_no_title form was submitted successfully.", 'Validation form submitted successfully.');
|
||||
|
||||
// Check the page for the error class on the textfield.
|
||||
$this->assertFieldByXPath('//input[contains(@class, "error")]', FALSE, 'Error input form element class found.');
|
||||
|
||||
// Submit again with required fields set and verify that there are no
|
||||
// error messages.
|
||||
$edit = array(
|
||||
'textfield' => $this->randomString(),
|
||||
);
|
||||
$this->drupalPost(NULL, $edit, 'Submit');
|
||||
$this->assertNoFieldByXpath('//input[contains(@class, "error")]', FALSE, 'No error input form element class found.');
|
||||
$this->assertRaw("The form_test_validate_required_form_no_title form was submitted successfully.", 'Validation form submitted successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test default value handling for checkboxes.
|
||||
*
|
||||
@@ -1308,6 +1340,81 @@ class FormsRebuildTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests form redirection.
|
||||
*/
|
||||
class FormsRedirectTestCase extends DrupalWebTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Form redirecting',
|
||||
'description' => 'Tests functionality of drupal_redirect_form().',
|
||||
'group' => 'Form API',
|
||||
);
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
parent::setUp(array('form_test'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests form redirection.
|
||||
*/
|
||||
function testRedirect() {
|
||||
$path = 'form-test/redirect';
|
||||
$options = array('query' => array('foo' => 'bar'));
|
||||
$options['absolute'] = TRUE;
|
||||
|
||||
// Test basic redirection.
|
||||
$edit = array(
|
||||
'redirection' => TRUE,
|
||||
'destination' => $this->randomName(),
|
||||
);
|
||||
$this->drupalPost($path, $edit, t('Submit'));
|
||||
$this->assertUrl($edit['destination'], array(), 'Basic redirection works.');
|
||||
|
||||
|
||||
// Test without redirection.
|
||||
$edit = array(
|
||||
'redirection' => FALSE,
|
||||
);
|
||||
$this->drupalPost($path, $edit, t('Submit'));
|
||||
$this->assertUrl($path, array(), 'When redirect is set to FALSE, there should be no redirection.');
|
||||
|
||||
// Test redirection with query parameters.
|
||||
$edit = array(
|
||||
'redirection' => TRUE,
|
||||
'destination' => $this->randomName(),
|
||||
);
|
||||
$this->drupalPost($path, $edit, t('Submit'), $options);
|
||||
$this->assertUrl($edit['destination'], array(), 'Redirection with query parameters works.');
|
||||
|
||||
// Test without redirection but with query parameters.
|
||||
$edit = array(
|
||||
'redirection' => FALSE,
|
||||
);
|
||||
$this->drupalPost($path, $edit, t('Submit'), $options);
|
||||
$this->assertUrl($path, $options, 'When redirect is set to FALSE, there should be no redirection, and the query parameters should be passed along.');
|
||||
|
||||
// Test redirection back to the original path.
|
||||
$edit = array(
|
||||
'redirection' => TRUE,
|
||||
'destination' => '',
|
||||
);
|
||||
$this->drupalPost($path, $edit, t('Submit'));
|
||||
$this->assertUrl($path, array(), 'When using an empty redirection string, there should be no redirection.');
|
||||
|
||||
// Test redirection back to the original path with query parameters.
|
||||
$edit = array(
|
||||
'redirection' => TRUE,
|
||||
'destination' => '',
|
||||
);
|
||||
$this->drupalPost($path, $edit, t('Submit'), $options);
|
||||
$this->assertUrl($path, $options, 'When using an empty redirection string, there should be no redirection, and the query parameters should be passed along.');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the programmatic form submission behavior.
|
||||
*/
|
||||
@@ -1675,3 +1782,34 @@ class FormCheckboxTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests uniqueness of generated HTML IDs.
|
||||
*/
|
||||
class HTMLIdTestCase extends DrupalWebTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Unique HTML IDs',
|
||||
'description' => 'Tests functionality of drupal_html_id().',
|
||||
'group' => 'Form API',
|
||||
);
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
parent::setUp('form_test');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests that HTML IDs do not get duplicated when form validation fails.
|
||||
*/
|
||||
function testHTMLId() {
|
||||
$this->drupalGet('form-test/double-form');
|
||||
$this->assertNoDuplicateIds('There are no duplicate IDs');
|
||||
|
||||
// Submit second form with empty title.
|
||||
$edit = array();
|
||||
$this->drupalPost(NULL, $edit, 'Save', array(), array(), 'form-test-html-id--2');
|
||||
$this->assertNoDuplicateIds('There are no duplicate IDs');
|
||||
}
|
||||
}
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -30,6 +30,13 @@ function form_test_menu() {
|
||||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
$items['form-test/validate-required-no-title'] = array(
|
||||
'title' => 'Form #required validation without #title',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('form_test_validate_required_form_no_title'),
|
||||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
$items['form-test/limit-validation-errors'] = array(
|
||||
'title' => 'Form validation with some error suppression',
|
||||
'page callback' => 'drupal_get_form',
|
||||
@@ -151,6 +158,14 @@ function form_test_menu() {
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
$items['form-test/redirect'] = array(
|
||||
'title' => 'Redirect test',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('form_test_redirect'),
|
||||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
$items['form_test/form-labels'] = array(
|
||||
'title' => 'Form label test',
|
||||
'page callback' => 'drupal_get_form',
|
||||
@@ -186,6 +201,12 @@ function form_test_menu() {
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
}
|
||||
$items['form-test/double-form'] = array(
|
||||
'title' => 'Double form test',
|
||||
'page callback' => 'form_test_double_form',
|
||||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
$items['form-test/load-include-menu'] = array(
|
||||
'title' => 'FAPI test loading includes',
|
||||
@@ -398,6 +419,26 @@ function form_test_validate_required_form_submit($form, &$form_state) {
|
||||
drupal_set_message('The form_test_validate_required_form form was submitted successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Form constructor to test the #required property without #title.
|
||||
*/
|
||||
function form_test_validate_required_form_no_title($form, &$form_state) {
|
||||
$form['textfield'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#required' => TRUE,
|
||||
);
|
||||
$form['actions'] = array('#type' => 'actions');
|
||||
$form['actions']['submit'] = array('#type' => 'submit', '#value' => 'Submit');
|
||||
return $form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Form submission handler for form_test_validate_required_form_no_title().
|
||||
*/
|
||||
function form_test_validate_required_form_no_title_submit($form, &$form_state) {
|
||||
drupal_set_message('The form_test_validate_required_form_no_title form was submitted successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds a simple form with a button triggering partial validation.
|
||||
*/
|
||||
@@ -1643,6 +1684,43 @@ function form_test_clicked_button_submit($form, &$form_state) {
|
||||
drupal_set_message('Submit handler for form_test_clicked_button executed.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Form builder to detect form redirect.
|
||||
*/
|
||||
function form_test_redirect($form, &$form_state) {
|
||||
$form['redirection'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Use redirection'),
|
||||
);
|
||||
$form['destination'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Redirect destination'),
|
||||
'#states' => array(
|
||||
'visible' => array(
|
||||
':input[name="redirection"]' => array('checked' => TRUE),
|
||||
),
|
||||
),
|
||||
);
|
||||
$form['submit'] = array(
|
||||
'#type' => 'submit',
|
||||
'#value' => t('Submit'),
|
||||
);
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Form submit handler to test different redirect behaviours.
|
||||
*/
|
||||
function form_test_redirect_submit(&$form, &$form_state) {
|
||||
if (!empty($form_state['values']['redirection'])) {
|
||||
$form_state['redirect'] = !empty($form_state['values']['destination']) ? $form_state['values']['destination'] : NULL;
|
||||
}
|
||||
else {
|
||||
$form_state['redirect'] = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_form_FORM_ID_alter() for the registration form.
|
||||
*/
|
||||
@@ -1742,3 +1820,29 @@ function form_test_checkboxes_zero($form, &$form_state, $json = TRUE) {
|
||||
function _form_test_checkboxes_zero_no_redirect($form, &$form_state) {
|
||||
$form_state['redirect'] = FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menu callback returns two instances of the same form.
|
||||
*/
|
||||
function form_test_double_form() {
|
||||
return array(
|
||||
'form1' => drupal_get_form('form_test_html_id'),
|
||||
'form2' => drupal_get_form('form_test_html_id'),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds a simple form to test duplicate HTML IDs.
|
||||
*/
|
||||
function form_test_html_id($form, &$form_state) {
|
||||
$form['name'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => 'name',
|
||||
'#required' => TRUE,
|
||||
);
|
||||
$form['submit'] = array(
|
||||
'#type' => 'submit',
|
||||
'#value' => 'Save',
|
||||
);
|
||||
return $form;
|
||||
}
|
||||
|
@@ -2,13 +2,13 @@
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Fake an https request, for use during testing.
|
||||
* Fake an HTTPS request, for use during testing.
|
||||
*/
|
||||
|
||||
// Set a global variable to indicate a mock HTTPS request.
|
||||
$is_https_mock = empty($_SERVER['HTTPS']);
|
||||
|
||||
// Change to https.
|
||||
// Change to HTTPS.
|
||||
$_SERVER['HTTPS'] = 'on';
|
||||
foreach ($_SERVER as $key => $value) {
|
||||
$_SERVER[$key] = str_replace('modules/simpletest/tests/https.php', 'index.php', $value);
|
||||
|
@@ -14,7 +14,13 @@ class ImageToolkitTestCase extends DrupalWebTestCase {
|
||||
protected $image;
|
||||
|
||||
function setUp() {
|
||||
parent::setUp('image_test');
|
||||
$modules = func_get_args();
|
||||
if (isset($modules[0]) && is_array($modules[0])) {
|
||||
$modules = $modules[0];
|
||||
}
|
||||
$modules[] = 'image_test';
|
||||
|
||||
parent::setUp($modules);
|
||||
|
||||
// Use the image_test.module's test toolkit.
|
||||
$this->toolkit = 'test';
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -150,7 +150,7 @@ class DrupalHtmlToTextTestCase extends DrupalWebTestCase {
|
||||
$tests = array(
|
||||
// @todo Trailing linefeeds should be trimmed.
|
||||
'<a href = "http://drupal.org">Drupal.org</a>' => "Drupal.org [1]\n\n[1] http://drupal.org\n",
|
||||
// @todo Footer urls should be absolute.
|
||||
// @todo Footer URLs should be absolute.
|
||||
"<a href = \"$base_path\">Homepage</a>" => "Homepage [1]\n\n[1] $base_url/\n",
|
||||
'<address>Drupal</address>' => "Drupal\n",
|
||||
// @todo The <address> tag is currently not supported.
|
||||
@@ -367,7 +367,7 @@ class DrupalHtmlToTextTestCase extends DrupalWebTestCase {
|
||||
. '<br /><a href="http://www.example.com">Host, no path</a>'
|
||||
. '<br /><a href="' . $base_path . 'node/1">Path, no host</a>'
|
||||
. '<br /><a href="node/1">Relative path</a>';
|
||||
// @todo Footnote urls should be absolute.
|
||||
// @todo Footnote URLs should be absolute.
|
||||
$tt = "Host and path [1]"
|
||||
. "\nHost, no path [2]"
|
||||
// @todo The following two references should be combined.
|
||||
|
@@ -599,7 +599,7 @@ class MenuRouterTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a url and assert the title given a case number. If override is true,
|
||||
* Get a URL and assert the title given a case number. If override is true,
|
||||
* the title is asserted to begin with "Alternative".
|
||||
*/
|
||||
private function menuItemTitlesCasesHelper($case_no, $override = FALSE) {
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -25,7 +25,7 @@ class ModuleUnitTest extends DrupalWebTestCase {
|
||||
$profile_info = install_profile_info('standard', 'en');
|
||||
$module_list = $profile_info['dependencies'];
|
||||
|
||||
// Install profile is a module that is expected to be loaded.
|
||||
// Installation profile is a module that is expected to be loaded.
|
||||
$module_list[] = 'standard';
|
||||
|
||||
sort($module_list);
|
||||
@@ -171,12 +171,12 @@ class ModuleUnitTest extends DrupalWebTestCase {
|
||||
$this->assertFalse(module_exists('php'), t('Disabling a module with unlisted dependents succeeded.'));
|
||||
$this->assertEqual(variable_get('test_module_disable_order', array()), array('forum', 'poll', 'php'), t('Modules were disabled in the correct order by module_disable().'));
|
||||
|
||||
// Disable a module that is listed as a dependency by the install profile.
|
||||
// Make sure that the profile itself is not on the list of dependent
|
||||
// modules to be disabled.
|
||||
// Disable a module that is listed as a dependency by the installation
|
||||
// profile. Make sure that the profile itself is not on the list of
|
||||
// dependent modules to be disabled.
|
||||
$profile = drupal_get_profile();
|
||||
$info = install_profile_info($profile);
|
||||
$this->assertTrue(in_array('comment', $info['dependencies']), t('Comment module is listed as a dependency of the install profile.'));
|
||||
$this->assertTrue(in_array('comment', $info['dependencies']), t('Comment module is listed as a dependency of the installation profile.'));
|
||||
$this->assertTrue(module_exists('comment'), t('Comment module is enabled.'));
|
||||
module_disable(array('comment'));
|
||||
$this->assertFalse(module_exists('comment'), t('Comment module was disabled.'));
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
function requirements1_test_requirements($phase) {
|
||||
$requirements = array();
|
||||
// Ensure translations don't break at install time.
|
||||
// Ensure translations don't break during installation.
|
||||
$t = get_t();
|
||||
|
||||
// Always fails requirements.
|
||||
|
@@ -7,8 +7,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -289,14 +289,14 @@ class SessionTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure that when running under https two session cookies are generated.
|
||||
* Ensure that when running under HTTPS two session cookies are generated.
|
||||
*/
|
||||
class SessionHttpsTestCase extends DrupalWebTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Session https handling',
|
||||
'description' => 'Ensure that when running under https two session cookies are generated.',
|
||||
'name' => 'Session HTTPS handling',
|
||||
'description' => 'Ensure that when running under HTTPS two session cookies are generated.',
|
||||
'group' => 'Session'
|
||||
);
|
||||
}
|
||||
@@ -384,7 +384,7 @@ class SessionHttpsTestCase extends DrupalWebTestCase {
|
||||
$this->cookies = array();
|
||||
|
||||
if ($is_https) {
|
||||
// The functionality does not make sense when running on https.
|
||||
// The functionality does not make sense when running on HTTPS.
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
hidden = TRUE
|
||||
dependencies[] = _missing_dependency
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
hidden = TRUE
|
||||
dependencies[] = system_incompatible_core_version_test
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 5.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -7,8 +7,8 @@ hidden = TRUE
|
||||
; system_incompatible_module_version_test declares version 1.0
|
||||
dependencies[] = system_incompatible_module_version_test (>2.0)
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = 1.0
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
files[] = system_test.module
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
hidden = TRUE
|
||||
dependencies[] = taxonomy
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -3,6 +3,8 @@
|
||||
/**
|
||||
* @file
|
||||
* Test module for Taxonomy hooks and functions not used in core.
|
||||
*
|
||||
* @see TaxonomyHooksTestCase::testTaxonomyTermHooks()
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -54,6 +56,34 @@ function taxonomy_test_taxonomy_term_delete($term) {
|
||||
->execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_taxonomy_term_view().
|
||||
*/
|
||||
function taxonomy_test_taxonomy_term_view($term, $view_mode, $langcode) {
|
||||
if ($view_mode == 'full') {
|
||||
$term->content['taxonomy_test_term_view_check'] = array(
|
||||
'#prefix' => '<div>',
|
||||
'#markup' => t('The antonym is %antonym', array('%antonym' => $term->antonym)),
|
||||
'#suffix' => '</div>',
|
||||
'#weight' => 10,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_entity_view().
|
||||
*/
|
||||
function taxonomy_test_entity_view($entity, $type, $view_mode, $langcode) {
|
||||
if ($type == 'taxonomy_term' && $view_mode == 'full') {
|
||||
$entity->content['taxonomy_test_entity_view_check'] = array(
|
||||
'#prefix' => '<div>',
|
||||
'#markup' => t('The antonym is %antonym', array('%antonym' => $entity->antonym)),
|
||||
'#suffix' => '</div>',
|
||||
'#weight' => 20,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_form_alter().
|
||||
*/
|
||||
|
@@ -230,18 +230,19 @@ class ThemeItemListUnitTest extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test nested list rendering.
|
||||
* Test item list rendering.
|
||||
*/
|
||||
function testNestedList() {
|
||||
$items = array('a', array('data' => 'b', 'children' => array('c', 'd')), 'e');
|
||||
function testItemList() {
|
||||
$items = array('a', array('data' => 'b', 'children' => array('c' => 'c', 'd' => 'd', 'e' => 'e')), 'f');
|
||||
$expected = '<div class="item-list"><ul><li class="first">a</li>
|
||||
<li>b<div class="item-list"><ul><li class="first">c</li>
|
||||
<li class="last">d</li>
|
||||
</ul></div></li>
|
||||
<li>d</li>
|
||||
<li class="last">e</li>
|
||||
</ul></div></li>
|
||||
<li class="last">f</li>
|
||||
</ul></div>';
|
||||
$output = theme('item_list', array('items' => $items));
|
||||
$this->assertIdentical($expected, $output, 'Nested list is rendered correctly.');
|
||||
$this->assertIdentical($expected, $output, 'Item list is rendered correctly.');
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ hidden = TRUE
|
||||
settings[basetheme_only] = base theme value
|
||||
settings[subtheme_override] = base theme value
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ hidden = TRUE
|
||||
|
||||
settings[subtheme_override] = subtheme value
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -17,8 +17,8 @@ stylesheets[all][] = system.base.css
|
||||
|
||||
settings[theme_test_setting] = default value
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -258,3 +258,17 @@ db_insert('vocabulary_node_types')->fields(array(
|
||||
))
|
||||
->execute();
|
||||
|
||||
// Provide all users with the ability to create forum topics.
|
||||
$results = db_select('permission', 'p')
|
||||
->fields('p')
|
||||
->execute();
|
||||
|
||||
foreach ($results as $result) {
|
||||
$permissions = $result->perm . ', create forum topics';
|
||||
db_update('permission')
|
||||
->fields(array(
|
||||
'perm' => $permissions,
|
||||
))
|
||||
->condition('rid', $result->rid)
|
||||
->execute();
|
||||
}
|
||||
|
@@ -126,6 +126,33 @@ db_insert('menu_links')->fields(array(
|
||||
'p9' => '0',
|
||||
'updated' => '0',
|
||||
))
|
||||
->values(array(
|
||||
'menu_name' => 'secondary-links',
|
||||
'mlid' => '206',
|
||||
'plid' => '0',
|
||||
'link_path' => 'node',
|
||||
'router_path' => 'node',
|
||||
'link_title' => 'node-page-with-query',
|
||||
'options' => 'a:2:{s:5:"query";s:14:"page=1&node=10";s:10:"attributes";a:1:{s:5:"title";s:0:"";}}',
|
||||
'module' => 'menu',
|
||||
'hidden' => '0',
|
||||
'external' => '0',
|
||||
'has_children' => '0',
|
||||
'expanded' => '0',
|
||||
'weight' => '2',
|
||||
'depth' => '1',
|
||||
'customized' => '1',
|
||||
'p1' => '206',
|
||||
'p2' => '0',
|
||||
'p3' => '0',
|
||||
'p4' => '0',
|
||||
'p5' => '0',
|
||||
'p6' => '0',
|
||||
'p7' => '0',
|
||||
'p8' => '0',
|
||||
'p9' => '0',
|
||||
'updated' => '0',
|
||||
))
|
||||
->execute();
|
||||
db_insert('blocks')->fields(array(
|
||||
'bid',
|
||||
|
@@ -416,3 +416,34 @@ db_insert('upload')->fields(array(
|
||||
'weight' => '0',
|
||||
))
|
||||
->execute();
|
||||
|
||||
// Add series of entries for invalid node vids to the {upload} table.
|
||||
for ($i = 30; $i < 250; $i += 2) {
|
||||
db_insert('upload')->fields(array(
|
||||
'fid',
|
||||
'nid',
|
||||
'vid',
|
||||
'description',
|
||||
'list',
|
||||
'weight',
|
||||
))
|
||||
// Invalid fid, invalid vid.
|
||||
->values(array(
|
||||
'fid' => $i,
|
||||
'nid' => '40',
|
||||
'vid' => 24 + $i,
|
||||
'description' => 'crazy-basename.png',
|
||||
'list' => '1',
|
||||
'weight' => '0',
|
||||
))
|
||||
// Valid fid, invalid vid.
|
||||
->values(array(
|
||||
'fid' => 2,
|
||||
'nid' => '40',
|
||||
'vid' => 24 + $i + 1,
|
||||
'description' => 'crazy-basename.png',
|
||||
'list' => '1',
|
||||
'weight' => '0',
|
||||
))
|
||||
->execute();
|
||||
}
|
||||
|
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Test content for the aggregator update path.
|
||||
*/
|
||||
|
||||
db_insert('aggregator_feed')->fields(array(
|
||||
'fid',
|
||||
'title',
|
||||
'url',
|
||||
'refresh',
|
||||
'checked',
|
||||
'queued',
|
||||
'link',
|
||||
'description',
|
||||
'image',
|
||||
'hash',
|
||||
'etag',
|
||||
'modified',
|
||||
'block',
|
||||
))
|
||||
->values(array(
|
||||
'fid' => '1',
|
||||
'title' => 'Drupal commit log',
|
||||
'url' => 'http://drupal.org/commitlog/feed',
|
||||
'refresh' => '3600',
|
||||
'checked' => '1347209523',
|
||||
'queued' => '0',
|
||||
'link' => 'http://drupal.org/versioncontrol/garbage/path',
|
||||
'description' => '',
|
||||
'image' => '',
|
||||
'hash' => '84f57ae5bffa7fd56942a6293be91244d8551cd18204a7c7de6a17065ea4d54d',
|
||||
'etag' => '"1347206975"',
|
||||
'modified' => '1347206975',
|
||||
'block' => '5',
|
||||
))
|
||||
->execute();
|
||||
|
||||
db_insert('aggregator_item')->fields(array(
|
||||
'iid',
|
||||
'fid',
|
||||
'title',
|
||||
'link',
|
||||
'author',
|
||||
'description',
|
||||
'timestamp',
|
||||
'guid',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '1',
|
||||
'fid' => '1',
|
||||
'title' => 'Domain Access: Commit b904022 on 7.x-2.x authored by bforchhammer, committed by agentrickard',
|
||||
'link' => 'http://drupal.org/commitlog/commit/2%2C410/b90402243b4a9dee0d2e2c4a729dcb2f58dc53c0',
|
||||
'author' => 'bforchhammer',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-10\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/domain.git/blob/b90402243b4a9dee0d2e2c4a729dcb2f58dc53c0:/domain_source/domain_source.info\">/domain_source/domain_source.info</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">1 addition & 1 deletion</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"minus\">-</span><span class=\"no-op\"> </span><span class=\"no-op\"> </span><span class=\"no-op\"> </span><span class=\"no-op\"> </span><span class=\"no-op\"> </span></span></span>\n </div>\n </div>\n <div class=\"views-row views-row-2 views-row-even views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/domain.git/blob/b90402243b4a9dee0d2e2c4a729dcb2f58dc53c0:/domain_source/domain_source.views.inc\">/domain_source/domain_source.views.inc</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">13 additions & 1 deletion</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"minus\">-</span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>Patch #1685658 by bforchhammer. Better handling of current domain for Domain Source.\n</pre>",
|
||||
'timestamp' => '1347206044',
|
||||
'guid' => 'VCS Operation 3936918 at http://drupal.org',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '2',
|
||||
'fid' => '1',
|
||||
'title' => 'Video: Commit b0b7ff0 on 7.x-2.x by Jorrit',
|
||||
'link' => 'http://drupal.org/commitlog/commit/846/b0b7ff08fed89c76454aa54627cc219361365d7b',
|
||||
'author' => 'Jorrit',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-9\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/video.git/blob/b0b7ff08fed89c76454aa54627cc219361365d7b:/libraries/phpvideotoolkit/phpvideotoolkit.php5.php\">/libraries/phpvideotoolkit/phpvideotoolkit.php5.php</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">5 additions & 5 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"minus\">-</span><span class=\"minus\">-</span><span class=\"minus\">-</span><span class=\"no-op\"> </span></span></span>\n </div>\n </div>\n <div class=\"views-row views-row-2 views-row-even\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/video.git/blob/b0b7ff08fed89c76454aa54627cc219361365d7b:/tests/TranscoderAbstractionFactoryFfmpeg.test\">/tests/TranscoderAbstractionFactoryFfmpeg.test</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">21 additions & 7 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"minus\">-</span><span class=\"minus\">-</span></span></span>\n </div>\n </div>\n <div class=\"views-row views-row-3 views-row-odd views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/video.git/blob/b0b7ff08fed89c76454aa54627cc219361365d7b:/transcoders/TranscoderAbstractionFactoryFfmpeg.inc\">/transcoders/TranscoderAbstractionFactoryFfmpeg.inc</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">31 additions & 22 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"minus\">-</span><span class=\"minus\">-</span><span class=\"minus\">-</span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>Issue #1492296 by Jorrit: Added support for avconv binaries instead of FFmpeg.\n</pre>",
|
||||
'timestamp' => '1347206397',
|
||||
'guid' => 'VCS Operation 3936924 at http://drupal.org',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '3',
|
||||
'fid' => '1',
|
||||
'title' => 'Remove Login Tabs: Commit 6e1eb5a on 7.x-1.x by highrockmedia',
|
||||
'link' => 'http://drupal.org/commitlog/commit/41%2C610/6e1eb5a4a952db3264e7696e840ac3d797f4b477',
|
||||
'author' => 'highrockmedia',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-8\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/sandbox/highrockmedia/1702096.git/blob/6e1eb5a4a952db3264e7696e840ac3d797f4b477:/readme.txt\">/readme.txt</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">10 additions & 2 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"minus\">-</span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>Updating readme\n</pre>",
|
||||
'timestamp' => '1347206401',
|
||||
'guid' => 'VCS Operation 3936920 at http://drupal.org',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '4',
|
||||
'fid' => '1',
|
||||
'title' => 'TimeGroup: Commit 6ed4c08 on 7.x-1.x by Sweetchuck',
|
||||
'link' => 'http://drupal.org/commitlog/commit/40%2C448/6ed4c085e5d9a8d33e091e1b8a65c73eab2dc99e',
|
||||
'author' => 'Sweetchuck',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-7\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/sandbox/Sweetchuck/1666642.git/blob/6ed4c085e5d9a8d33e091e1b8a65c73eab2dc99e:/includes/ctools/export_ui/timegroup.inc\">/includes/ctools/export_ui/timegroup.inc</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">1 addition & 1 deletion</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"minus\">-</span><span class=\"no-op\"> </span><span class=\"no-op\"> </span><span class=\"no-op\"> </span><span class=\"no-op\"> </span><span class=\"no-op\"> </span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>CTools UI - Wrong default value for timeoffset fix.\n</pre>",
|
||||
'timestamp' => '1347206533',
|
||||
'guid' => 'VCS Operation 3936942 at http://drupal.org',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '5',
|
||||
'fid' => '1',
|
||||
'title' => 'Domain Access: Commit 1140172 on 6.x-2.x authored by bforchhammer, committed by agentrickard',
|
||||
'link' => 'http://drupal.org/commitlog/commit/2%2C410/11401723f5c5d11032dd141ba4939ed889a7a915',
|
||||
'author' => 'bforchhammer',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-6\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/domain.git/blob/11401723f5c5d11032dd141ba4939ed889a7a915:/domain_source/domain_source.views.inc\">/domain_source/domain_source.views.inc</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">33 additions & 1 deletion</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"no-op\"> </span></span></span>\n </div>\n </div>\n <div class=\"views-row views-row-2 views-row-even views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/domain.git/blob/11401723f5c5d11032dd141ba4939ed889a7a915:/domain_source/includes/domain_source_handler_filter_domain_id.inc\">/domain_source/includes/domain_source_handler_filter_domain_id.inc</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">28 additions & 0 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>Patch #1685658 by bforchhammer. Better handling of current domain for Domain Source.\n</pre>",
|
||||
'timestamp' => '1347206541',
|
||||
'guid' => 'VCS Operation 3936926 at http://drupal.org',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '6',
|
||||
'fid' => '1',
|
||||
'title' => 'Domain Access: Commit 19b1c36 on 7.x-2.x by agentrickard',
|
||||
'link' => 'http://drupal.org/commitlog/commit/2%2C410/19b1c366d86cecd8a9f6e1a6e835c0566f5c02db',
|
||||
'author' => 'agentrickard',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-5\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/domain.git/blob/19b1c366d86cecd8a9f6e1a6e835c0566f5c02db:/domain_source/includes/domain_source_handler_filter_domain_id.inc\">/domain_source/includes/domain_source_handler_filter_domain_id.inc</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">28 additions & 0 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>Adds new Views file to Domain Source.\n</pre>",
|
||||
'timestamp' => '1347206601',
|
||||
'guid' => 'VCS Operation 3936928 at http://drupal.org',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '7',
|
||||
'fid' => '1',
|
||||
'title' => 'Domain Access: Commit d2d5456 on 7.x-3.x by agentrickard',
|
||||
'link' => 'http://drupal.org/commitlog/commit/2%2C410/d2d5456cad6ca57bb72e743da6a7112a74d7a331',
|
||||
'author' => 'agentrickard',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-4\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/domain.git/blob/d2d5456cad6ca57bb72e743da6a7112a74d7a331:/domain_source/includes/domain_source_handler_filter_domain_id.inc\">/domain_source/includes/domain_source_handler_filter_domain_id.inc</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">29 additions & 0 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>Adds new Views file to Domain Source.\n</pre>",
|
||||
'timestamp' => '1347206620',
|
||||
'guid' => 'VCS Operation 3936930 at http://drupal.org',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '8',
|
||||
'fid' => '1',
|
||||
'title' => 'Skarabee: Commit 400b519 on 7.x-1.x by sboersma',
|
||||
'link' => 'http://drupal.org/commitlog/commit/23%2C278/400b5190f59b1cb58d6b27fa10ac668e9580aa73',
|
||||
'author' => 'sboersma',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-3\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/sandbox/sboersma/1176520.git/blob/400b5190f59b1cb58d6b27fa10ac668e9580aa73:/skarabee.install\">/skarabee.install</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">3 additions & 3 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"minus\">-</span><span class=\"minus\">-</span><span class=\"minus\">-</span><span class=\"no-op\"> </span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>sboersma: Changed variable deletion method.\n</pre>",
|
||||
'timestamp' => '1347206709',
|
||||
'guid' => 'VCS Operation 3936932 at http://drupal.org',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '9',
|
||||
'fid' => '1',
|
||||
'title' => 'Config entity listing plugin API: Commit dd3fa73 on 8.x-list by damiankloip',
|
||||
'link' => 'http://drupal.org/commitlog/commit/43%2C586/dd3fa73b0bcdca833bbde1d1ddb3cefe42003693',
|
||||
'author' => 'damiankloip',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-2\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/sandbox/damiankloip/1778654.git/blob/dd3fa73b0bcdca833bbde1d1ddb3cefe42003693:/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListingTest.php\">/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListingTest.php</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">10 additions & 2 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"minus\">-</span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>Added tests for getList() method\n</pre>",
|
||||
'timestamp' => '1347206738',
|
||||
'guid' => 'VCS Operation 3936936 at http://drupal.org',
|
||||
))
|
||||
->values(array(
|
||||
'iid' => '10',
|
||||
'fid' => '1',
|
||||
'title' => 'AutoSlave: Commit 76891da on 7.x-1.x by gielfeldt',
|
||||
'link' => 'http://drupal.org/commitlog/commit/42%2C968/76891daf3cea9c294daf56a26760cb1bf33ea58a',
|
||||
'author' => 'gielfeldt',
|
||||
'description' => "<div class=\"view view-commitlog-commit-items view-id-commitlog_commit_items view-display-id-block_1 view-dom-id-1\">\n \n \n \n <div class=\"view-content\">\n <div class=\"views-row views-row-1 views-row-odd views-row-first\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/autoslave.git/blob/76891daf3cea9c294daf56a26760cb1bf33ea58a:/autoslave.module\">/autoslave.module</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">10 additions & 7 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"minus\">-</span><span class=\"minus\">-</span><span class=\"minus\">-</span></span></span>\n </div>\n </div>\n <div class=\"views-row views-row-2 views-row-even views-row-last\">\n \n <div class=\"views-field-path\">\n <span class=\"field-content\"><a href=\"http://drupalcode.org/project/autoslave.git/blob/76891daf3cea9c294daf56a26760cb1bf33ea58a:/autoslave/database.inc\">/autoslave/database.inc</a></span>\n </div>\n \n <div class=\"views-field-changed-lines\">\n <span class=\"field-content\">10 additions & 2 deletions</span>\n </div>\n \n <div class=\"views-field-visual-diffstat\">\n <span class=\"field-content\"><span class=\"versioncontrol-diffstat clear-block\"><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"plus\">+</span><span class=\"minus\">-</span></span></span>\n </div>\n </div>\n </div>\n \n \n \n \n \n \n</div>\n<pre>Keep track of affected tables per commit.\n</pre>",
|
||||
'timestamp' => '1347206751',
|
||||
'guid' => 'VCS Operation 3936934 at http://drupal.org',
|
||||
))
|
||||
->execute();
|
Binary file not shown.
47
modules/simpletest/tests/upgrade/update.aggregator.test
Normal file
47
modules/simpletest/tests/upgrade/update.aggregator.test
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Tests schema changes in aggregator.module.
|
||||
*/
|
||||
class AggregatorUpdatePathTestCase extends UpdatePathTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Aggregator update path',
|
||||
'description' => 'Aggregator update path tests.',
|
||||
'group' => 'Upgrade path',
|
||||
);
|
||||
}
|
||||
|
||||
public function setUp() {
|
||||
// Use the normal installation and add our feed data.
|
||||
$path = drupal_get_path('module', 'simpletest') . '/tests/upgrade';
|
||||
$this->databaseDumpFiles = array(
|
||||
$path . '/drupal-7.bare.standard_all.database.php.gz',
|
||||
$path . '/drupal-7.aggregator.database.php',
|
||||
);
|
||||
parent::setUp();
|
||||
|
||||
// Our test data only relies on aggregator.module.
|
||||
$this->uninstallModulesExcept(array('aggregator'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests that the aggregator.module update is successful.
|
||||
*/
|
||||
public function testAggregatorUpdate() {
|
||||
// Get a selection of the fields affected by the schema update.
|
||||
$query = db_select('aggregator_feed', 'af');
|
||||
$query->join('aggregator_item', 'ai', 'af.fid = ai.fid');
|
||||
$query
|
||||
->fields('af', array('url', 'link'))
|
||||
->fields('ai', array('link', 'guid'));
|
||||
|
||||
$pre_update_data = $query->execute()->fetchAll();
|
||||
$this->assertTrue($this->performUpgrade(), 'The update was completed successfully.');
|
||||
$post_update_data = $query->execute()->fetchAll();
|
||||
|
||||
$this->assertTrue($pre_update_data == $post_update_data, 'Feed data was preserved during the update.');
|
||||
}
|
||||
|
||||
}
|
@@ -56,5 +56,9 @@ class ForumUpgradePathTestCase extends UpgradePathTestCase {
|
||||
|
||||
$this->drupalGet("forum/$tid");
|
||||
$this->assertText('Bananas');
|
||||
}
|
||||
$this->drupalLogout();
|
||||
|
||||
$this->drupalGet("node/add/forum/$tid");
|
||||
$this->assertResponse(200, t('User can access forum creation page.'));
|
||||
}
|
||||
}
|
||||
|
@@ -5,8 +5,8 @@ package = Testing
|
||||
version = VERSION
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-10-17
|
||||
version = "7.16"
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
project = "drupal"
|
||||
datestamp = "1350508567"
|
||||
datestamp = "1352325357"
|
||||
|
||||
|
Reference in New Issue
Block a user