diff --git a/core/modules/rdf/src/Tests/StandardProfileTest.php b/core/modules/rdf/src/Tests/StandardProfileTest.php index 2b297a4..5ec6f3e 100644 --- a/core/modules/rdf/src/Tests/StandardProfileTest.php +++ b/core/modules/rdf/src/Tests/StandardProfileTest.php @@ -139,6 +139,7 @@ protected function setUp() { $article_settings = array( 'type' => 'article', 'promote' => NODE_PROMOTED, + 'langcode' => 'en', 'field_image' => array( array( 'target_id' => $this->image->id(), @@ -152,13 +153,13 @@ protected function setUp() { ); $this->article = $this->drupalCreateNode($article_settings); // Create second article to test teaser list. - $this->drupalCreateNode(array('type' => 'article', 'promote' => NODE_PROMOTED,)); + $this->drupalCreateNode(array('type' => 'article', 'promote' => NODE_PROMOTED, 'langcode' => 'en')); // Create article comment. $this->articleComment = $this->saveComment($this->article->id(), $this->webUser->id(), NULL, 0); // Create page. - $this->page = $this->drupalCreateNode(array('type' => 'page')); + $this->page = $this->drupalCreateNode(array('type' => 'page', 'langcode' => 'en')); // Set URIs. // Image. diff --git a/core/modules/views/src/Tests/DefaultViewsTest.php b/core/modules/views/src/Tests/DefaultViewsTest.php index c0feff5..e656058 100644 --- a/core/modules/views/src/Tests/DefaultViewsTest.php +++ b/core/modules/views/src/Tests/DefaultViewsTest.php @@ -94,6 +94,7 @@ protected function setUp() { if ($i % 2) { $values['promote'] = TRUE; } + $values['langcode'] = 'en'; $values['body'][]['value'] = l('Node ' . 1, 'node/' . 1); $node = $this->drupalCreateNode($values); diff --git a/core/profiles/standard/src/Tests/StandardTest.php b/core/profiles/standard/src/Tests/StandardTest.php index 9977e64..32eebe3 100644 --- a/core/profiles/standard/src/Tests/StandardTest.php +++ b/core/profiles/standard/src/Tests/StandardTest.php @@ -75,6 +75,7 @@ function testStandard() { 'title' => 'Foobar', 'promote' => 1, 'status' => 1, + 'langcode' => 'en' )); // Add a comment.