From 147bb1389a18eca73015390cc46a5fe03abfcb88 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 9 Jan 2010 21:54:01 +0000 Subject: #571654 follow-up by chx, peximo, plach, sun, et al: Roll-back of node titles as fields. The Entity Translation module in contrib can add this back, but for everyone else it creates a *huge* WTF. Apologies for how late this is coming, but better now than post-alpha. :\ --- modules/path/path.test | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/path') diff --git a/modules/path/path.test b/modules/path/path.test index 2cbb9a99f..15053ec39 100644 --- a/modules/path/path.test +++ b/modules/path/path.test @@ -63,7 +63,7 @@ class PathTestCase extends DrupalWebTestCase { // Confirm that the alias works. $this->drupalGet($edit['alias']); - $this->assertText($node1->title[LANGUAGE_NONE][0]['value'], 'Alias works.'); + $this->assertText($node1->title, 'Alias works.'); $this->assertResponse(200); // Change alias. @@ -75,7 +75,7 @@ class PathTestCase extends DrupalWebTestCase { // Confirm that the alias works. $this->drupalGet($edit['alias']); - $this->assertText($node1->title[LANGUAGE_NONE][0]['value'], 'Changed alias works.'); + $this->assertText($node1->title, 'Changed alias works.'); $this->assertResponse(200); drupal_static_reset('drupal_lookup_path'); @@ -118,7 +118,7 @@ class PathTestCase extends DrupalWebTestCase { // Confirm that the alias works. $this->drupalGet($edit['path[alias]']); - $this->assertText($node1->title[LANGUAGE_NONE][0]['value'], 'Alias works.'); + $this->assertText($node1->title, 'Alias works.'); $this->assertResponse(200); // Change alias. @@ -128,12 +128,12 @@ class PathTestCase extends DrupalWebTestCase { // Confirm that the alias works. $this->drupalGet($edit['path[alias]']); - $this->assertText($node1->title[LANGUAGE_NONE][0]['value'], 'Changed alias works.'); + $this->assertText($node1->title, 'Changed alias works.'); $this->assertResponse(200); // Make sure that previous alias no longer works. $this->drupalGet($previous); - $this->assertNoText($node1->title[LANGUAGE_NONE][0]['value'], 'Previous alias no longer works.'); + $this->assertNoText($node1->title, 'Previous alias no longer works.'); $this->assertResponse(404); // Create second test node. @@ -270,7 +270,7 @@ class PathLanguageTestCase extends DrupalWebTestCase { // Confirm that the alias works. $this->drupalGet($edit['path[alias]']); - $this->assertText($english_node->title[LANGUAGE_NONE][0]['value'], 'Alias works.'); + $this->assertText($english_node->title, 'Alias works.'); // Translate the node into French. $this->drupalGet('node/' . $english_node->nid . '/translate'); @@ -279,7 +279,7 @@ class PathLanguageTestCase extends DrupalWebTestCase { $langcode = 'fr'; $edit["body[$langcode][0][value]"] = $this->randomName(); $langcode = LANGUAGE_NONE; - $edit["title[$langcode][0][value]"] = $this->randomName(); + $edit["title"] = $this->randomName(); $edit['path[alias]'] = $this->randomName(); $this->drupalPost(NULL, $edit, t('Save')); @@ -287,12 +287,12 @@ class PathLanguageTestCase extends DrupalWebTestCase { drupal_lookup_path('wipe'); // Ensure the node was created. - $french_node = $this->drupalGetNodeByTitle($edit["title[$langcode][0][value]"]); + $french_node = $this->drupalGetNodeByTitle($edit["title"]); $this->assertTrue(($french_node), 'Node found in database.'); // Confirm that the alias works. $this->drupalGet('fr/' . $edit['path[alias]']); - $this->assertText($french_node->title[LANGUAGE_NONE][0]['value'], 'Alias for French translation works.'); + $this->assertText($french_node->title, 'Alias for French translation works.'); // Confirm that the alias is returned by url(). drupal_static_reset('language_list'); -- cgit v1.2.3