comparison core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
47 $body_key = 'body[0][value]'; 47 $body_key = 'body[0][value]';
48 48
49 // Fill in node creation form and preview node. 49 // Fill in node creation form and preview node.
50 $edit = [ 50 $edit = [
51 $title_key => $this->randomMachineName(), 51 $title_key => $this->randomMachineName(),
52 $body_key => $this->randomMachineName() 52 $body_key => $this->randomMachineName(),
53 ]; 53 ];
54 $this->drupalPostForm('node/add/page', $edit, t('Preview')); 54 $this->drupalPostForm('node/add/page', $edit, t('Preview'));
55 55
56 // Check that the preview is displaying the title, body and term. 56 // Check that the preview is displaying the title, body and term.
57 $this->assertSession()->linkExists(t('Back to content editing')); 57 $this->assertSession()->linkExists(t('Back to content editing'));