comparison core/modules/node/tests/src/Functional/NodeViewLanguageTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
31 ->save(); 31 ->save();
32 32
33 // Create a node in Spanish. 33 // Create a node in Spanish.
34 $node = $this->drupalCreateNode(['langcode' => 'es']); 34 $node = $this->drupalCreateNode(['langcode' => 'es']);
35 35
36 $this->drupalGet($node->urlInfo()); 36 $this->drupalGet($node->toUrl());
37 $this->assertText('Spanish', 'The language field is displayed properly.'); 37 $this->assertText('Spanish', 'The language field is displayed properly.');
38 } 38 }
39 39
40 } 40 }