comparison core/modules/node/tests/src/Functional/NodeViewLanguageTest.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
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 }