From 1df3cfffefefc93ed2d29041d148938d08bb9d4e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 29 Jan 2010 22:40:41 +0000 Subject: - Patch #284899 by c960657, voxpelli, mattconnolly: fixed Drupal url problem with clean urls. --- modules/path/path.test | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'modules/path') 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. -- cgit v1.2.3