Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.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 |
---|---|
98 } | 98 } |
99 foreach ($simple_users as $this->webUser) { | 99 foreach ($simple_users as $this->webUser) { |
100 $this->drupalLogin($this->webUser); | 100 $this->drupalLogin($this->webUser); |
101 foreach ([0 => 'Public', 1 => 'Private'] as $is_private => $type) { | 101 foreach ([0 => 'Public', 1 => 'Private'] as $is_private => $type) { |
102 $edit = [ | 102 $edit = [ |
103 'title[0][value]' => t('@private_public Article created by @user', ['@private_public' => $type, '@user' => $this->webUser->getUsername()]), | 103 'title[0][value]' => t('@private_public Article created by @user', ['@private_public' => $type, '@user' => $this->webUser->getAccountName()]), |
104 ]; | 104 ]; |
105 if ($is_private) { | 105 if ($is_private) { |
106 $edit['private[0][value]'] = TRUE; | 106 $edit['private[0][value]'] = TRUE; |
107 $edit['body[0][value]'] = 'private node'; | 107 $edit['body[0][value]'] = 'private node'; |
108 $edit['field_tags[target_id]'] = 'private'; | 108 $edit['field_tags[target_id]'] = 'private'; |