diff --git a/pathauto.test b/pathauto.test index 5a408e0..d7a8f98 100644 --- a/pathauto.test +++ b/pathauto.test @@ -719,6 +719,14 @@ class PathautoLocaleTestCase extends PathautoFunctionalTestHelper { $this->assertEntityAlias('node', $node, 'content/english-node-0', 'en'); $this->assertEntityAlias('node', $node, 'french-node', 'fr'); $this->assertAliasExists(array('pid' => $english_alias['pid'], 'alias' => 'content/english-node-0')); + + // Create a new node with the same title as before but without + // specifying a language. + $node = $this->drupalCreateNode(array('title' => 'English node')); + + // Check that the new node had a unique alias generated with the '-1' + // prefix. + $this->assertEntityAlias('node', $node, 'content/english-node-1'); } }