update to drupal 7.23
This commit is contained in:
@@ -58,7 +58,7 @@ class TableSortTest extends DrupalUnitTestCase {
|
||||
);
|
||||
$ts = tablesort_init($headers);
|
||||
$this->verbose(strtr('$ts: <pre>!ts</pre>', array('!ts' => check_plain(var_export($ts, TRUE)))));
|
||||
$this->assertEqual($ts, $expected_ts, t('Simple table headers sorted correctly.'));
|
||||
$this->assertEqual($ts, $expected_ts, 'Simple table headers sorted correctly.');
|
||||
|
||||
// Test with simple table headers plus $_GET parameters that should _not_
|
||||
// override the default.
|
||||
@@ -71,7 +71,7 @@ class TableSortTest extends DrupalUnitTestCase {
|
||||
);
|
||||
$ts = tablesort_init($headers);
|
||||
$this->verbose(strtr('$ts: <pre>!ts</pre>', array('!ts' => check_plain(var_export($ts, TRUE)))));
|
||||
$this->assertEqual($ts, $expected_ts, t('Simple table headers plus non-overriding $_GET parameters sorted correctly.'));
|
||||
$this->assertEqual($ts, $expected_ts, 'Simple table headers plus non-overriding $_GET parameters sorted correctly.');
|
||||
|
||||
// Test with simple table headers plus $_GET parameters that _should_
|
||||
// override the default.
|
||||
@@ -87,7 +87,7 @@ class TableSortTest extends DrupalUnitTestCase {
|
||||
$expected_ts['query'] = array('alpha' => 'beta');
|
||||
$ts = tablesort_init($headers);
|
||||
$this->verbose(strtr('$ts: <pre>!ts</pre>', array('!ts' => check_plain(var_export($ts, TRUE)))));
|
||||
$this->assertEqual($ts, $expected_ts, t('Simple table headers plus $_GET parameters sorted correctly.'));
|
||||
$this->assertEqual($ts, $expected_ts, 'Simple table headers plus $_GET parameters sorted correctly.');
|
||||
|
||||
// Test complex table headers.
|
||||
|
||||
@@ -118,7 +118,7 @@ class TableSortTest extends DrupalUnitTestCase {
|
||||
'query' => array(),
|
||||
);
|
||||
$this->verbose(strtr('$ts: <pre>!ts</pre>', array('!ts' => check_plain(var_export($ts, TRUE)))));
|
||||
$this->assertEqual($ts, $expected_ts, t('Complex table headers sorted correctly.'));
|
||||
$this->assertEqual($ts, $expected_ts, 'Complex table headers sorted correctly.');
|
||||
|
||||
// Test complex table headers plus $_GET parameters that should _not_
|
||||
// override the default.
|
||||
@@ -137,7 +137,7 @@ class TableSortTest extends DrupalUnitTestCase {
|
||||
'query' => array(),
|
||||
);
|
||||
$this->verbose(strtr('$ts: <pre>!ts</pre>', array('!ts' => check_plain(var_export($ts, TRUE)))));
|
||||
$this->assertEqual($ts, $expected_ts, t('Complex table headers plus non-overriding $_GET parameters sorted correctly.'));
|
||||
$this->assertEqual($ts, $expected_ts, 'Complex table headers plus non-overriding $_GET parameters sorted correctly.');
|
||||
unset($_GET['sort'], $_GET['order'], $_GET['alpha']);
|
||||
|
||||
// Test complex table headers plus $_GET parameters that _should_
|
||||
@@ -159,7 +159,7 @@ class TableSortTest extends DrupalUnitTestCase {
|
||||
);
|
||||
$ts = tablesort_init($headers);
|
||||
$this->verbose(strtr('$ts: <pre>!ts</pre>', array('!ts' => check_plain(var_export($ts, TRUE)))));
|
||||
$this->assertEqual($ts, $expected_ts, t('Complex table headers plus $_GET parameters sorted correctly.'));
|
||||
$this->assertEqual($ts, $expected_ts, 'Complex table headers plus $_GET parameters sorted correctly.');
|
||||
unset($_GET['sort'], $_GET['order'], $_GET['alpha']);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user