Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/tests/src/Functional/CommentAccessTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 7a779792577d |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
76 // Commenting on an unpublished node results in access denied. | 76 // Commenting on an unpublished node results in access denied. |
77 $this->drupalGet($comment_url); | 77 $this->drupalGet($comment_url); |
78 $assert->statusCodeEquals(403); | 78 $assert->statusCodeEquals(403); |
79 | 79 |
80 // Publishing the node grants access. | 80 // Publishing the node grants access. |
81 $this->unpublishedNode->setPublished(TRUE)->save(); | 81 $this->unpublishedNode->setPublished()->save(); |
82 $this->drupalGet($comment_url); | 82 $this->drupalGet($comment_url); |
83 $assert->statusCodeEquals(200); | 83 $assert->statusCodeEquals(200); |
84 } | 84 } |
85 | 85 |
86 /** | 86 /** |
110 // Replying to a comment on an unpublished node results in access denied. | 110 // Replying to a comment on an unpublished node results in access denied. |
111 $this->drupalGet($comment_url); | 111 $this->drupalGet($comment_url); |
112 $assert->statusCodeEquals(403); | 112 $assert->statusCodeEquals(403); |
113 | 113 |
114 // Publishing the node grants access. | 114 // Publishing the node grants access. |
115 $this->unpublishedNode->setPublished(TRUE)->save(); | 115 $this->unpublishedNode->setPublished()->save(); |
116 $this->drupalGet($comment_url); | 116 $this->drupalGet($comment_url); |
117 $assert->statusCodeEquals(200); | 117 $assert->statusCodeEquals(200); |
118 } | 118 } |
119 | 119 |
120 } | 120 } |