summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-29 22:40:41 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-29 22:40:41 +0000
commit1df3cfffefefc93ed2d29041d148938d08bb9d4e (patch)
tree3f2488086535e8ce70f656f32113dd6eef4fd545 /modules/path
parent139f4375615216dfd077caba957508ff60778f45 (diff)
downloadbrdo-1df3cfffefefc93ed2d29041d148938d08bb9d4e.tar.gz
brdo-1df3cfffefefc93ed2d29041d148938d08bb9d4e.tar.bz2
- Patch #284899 by c960657, voxpelli, mattconnolly: fixed Drupal url problem with clean urls.
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.test12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/path/path.test b/modules/path/path.test
index baba8e864..66b5c1344 100644
--- a/modules/path/path.test
+++ b/modules/path/path.test
@@ -66,11 +66,13 @@ class PathTestCase extends DrupalWebTestCase {
$this->assertText($node1->title, 'Alias works.');
$this->assertResponse(200);
- // Change alias.
+ // Change alias to one containing "exotic" characters.
$pid = $this->getPID($edit['alias']);
$previous = $edit['alias'];
- $edit['alias'] = $this->randomName(8);
+ $edit['alias'] = "- ._~!$'\"()*@[]?&+%#,;=:" . // "Special" ASCII characters.
+ "%23%25%26%2B%2F%3F" . // Characters that look like a percent-escaped string.
+ "éøïвβ中國書۞"; // Characters from various non-ASCII alphabets.
$this->drupalPost('admin/config/search/path/edit/' . $pid, $edit, t('Save'));
// Confirm that the alias works.
@@ -122,9 +124,11 @@ class PathTestCase extends DrupalWebTestCase {
$this->assertText($node1->title, 'Alias works.');
$this->assertResponse(200);
- // Change alias.
+ // Change alias to one containing "exotic" characters.
$previous = $edit['path[alias]'];
- $edit['path[alias]'] = $this->randomName(8);
+ $edit['path[alias]'] = "- ._~!$'\"()*@[]?&+%#,;=:" . // "Special" ASCII characters.
+ "%23%25%26%2B%2F%3F" . // Characters that look like a percent-escaped string.
+ "éøïвβ中國書۞"; // Characters from various non-ASCII alphabets.
$this->drupalPost('node/' . $node1->nid . '/edit', $edit, t('Save'));
// Confirm that the alias works.