Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/comment/tests/src/Functional/CommentRssTest.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 |
---|---|
3 namespace Drupal\Tests\comment\Functional; | 3 namespace Drupal\Tests\comment\Functional; |
4 | 4 |
5 use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface; | 5 use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface; |
6 use Drupal\Core\Cache\Cache; | 6 use Drupal\Core\Cache\Cache; |
7 use Drupal\Core\Entity\Entity\EntityViewDisplay; | 7 use Drupal\Core\Entity\Entity\EntityViewDisplay; |
8 use Drupal\system\Tests\Cache\AssertPageCacheContextsAndTagsTrait; | 8 use Drupal\Tests\system\Functional\Cache\AssertPageCacheContextsAndTagsTrait; |
9 | 9 |
10 /** | 10 /** |
11 * Tests comments as part of an RSS feed. | 11 * Tests comments as part of an RSS feed. |
12 * | 12 * |
13 * @group comment | 13 * @group comment |
64 'node:1', 'node_list', | 64 'node:1', 'node_list', |
65 'node_view', | 65 'node_view', |
66 'user:3', | 66 'user:3', |
67 ])); | 67 ])); |
68 | 68 |
69 $raw = '<comments>' . $this->node->url('canonical', ['fragment' => 'comments', 'absolute' => TRUE]) . '</comments>'; | 69 $raw = '<comments>' . $this->node->toUrl('canonical', ['fragment' => 'comments', 'absolute' => TRUE])->toString() . '</comments>'; |
70 $this->assertRaw($raw, 'Comments as part of RSS feed.'); | 70 $this->assertRaw($raw, 'Comments as part of RSS feed.'); |
71 | 71 |
72 // Hide comments from RSS feed and check presence. | 72 // Hide comments from RSS feed and check presence. |
73 $this->node->set('comment', CommentItemInterface::HIDDEN); | 73 $this->node->set('comment', CommentItemInterface::HIDDEN); |
74 $this->node->save(); | 74 $this->node->save(); |