diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-06 19:49:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-06 19:49:03 +0000 |
commit | ba96cffdb7d3f76254ff7391523a6fc34abf10e2 (patch) | |
tree | dd42dc052efda70657a1e73ab1e47964c920d734 /modules/simpletest/tests/path.test | |
parent | c2b1029595afe103b5f1533604cfe658755f1f8d (diff) | |
download | brdo-ba96cffdb7d3f76254ff7391523a6fc34abf10e2.tar.gz brdo-ba96cffdb7d3f76254ff7391523a6fc34abf10e2.tar.bz2 |
- Patch #699440 by scor, effulgentsia, noahb, catch: add bundle support to entity_uri() callback to remove performance overhead of forum_url_outbound_alter().
Diffstat (limited to 'modules/simpletest/tests/path.test')
-rw-r--r-- | modules/simpletest/tests/path.test | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/modules/simpletest/tests/path.test b/modules/simpletest/tests/path.test index 676c709cb..f99585691 100644 --- a/modules/simpletest/tests/path.test +++ b/modules/simpletest/tests/path.test @@ -177,11 +177,10 @@ class UrlAlterFunctionalTest extends DrupalWebTestCase { $this->assertUrlInboundAlter("user/$uid", "user/$uid"); $this->assertUrlOutboundAlter("user/$uid", "user/$uid"); - // Test that 'forum' is altered to 'community' correctly. + // Test that 'forum' is altered to 'community' correctly, both at the root + // level and for a specific existing forum. $this->assertUrlInboundAlter('community', 'forum'); $this->assertUrlOutboundAlter('forum', 'community'); - - // Add a forum to test url altering. $forum_vid = db_query("SELECT vid FROM {taxonomy_vocabulary} WHERE module = 'forum'")->fetchField(); $tid = db_insert('taxonomy_term_data') ->fields(array( @@ -189,15 +188,8 @@ class UrlAlterFunctionalTest extends DrupalWebTestCase { 'vid' => $forum_vid, )) ->execute(); - - // Test that a existing forum URL is altered. $this->assertUrlInboundAlter("community/$tid", "forum/$tid"); - $this->assertUrlOutboundAlter("taxonomy/term/$tid", "community/$tid"); - - // Test that a non-existant forum URL is not altered. - $tid++; - $this->assertUrlInboundAlter("taxonomy/term/$tid", "taxonomy/term/$tid"); - $this->assertUrlOutboundAlter("taxonomy/term/$tid", "taxonomy/term/$tid"); + $this->assertUrlOutboundAlter("forum/$tid", "community/$tid"); } /** |