public function AggregatorFeedViewsFieldAccessTest::testAggregatorFeedFields in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/aggregator/src/Tests/Views/AggregatorFeedViewsFieldAccessTest.php \Drupal\aggregator\Tests\Views\AggregatorFeedViewsFieldAccessTest::testAggregatorFeedFields()
Checks access for aggregator_feed fields.
File
- core/
modules/ aggregator/ src/ Tests/ Views/ AggregatorFeedViewsFieldAccessTest.php, line 37 - Contains \Drupal\aggregator\Tests\Views\AggregatorFeedViewsFieldAccessTest.
Class
- AggregatorFeedViewsFieldAccessTest
- Tests base field access in Views for the aggregator_feed entity.
Namespace
Drupal\aggregator\Tests\ViewsCode
public function testAggregatorFeedFields() {
$feed = Feed::create([
'title' => 'Drupal org',
'url' => 'https://www.drupal.org/rss.xml',
'link' => 'https://www.drupal.org/rss.xml',
]);
$feed
->save();
// @todo Expand the test coverage in https://www.drupal.org/node/2464635
// $this->assertFieldAccess('aggregator_feed', 'title', $feed->label());
$this
->assertFieldAccess('aggregator_feed', 'langcode', $feed
->language()
->getName());
$this
->assertFieldAccess('aggregator_feed', 'url', $feed
->getUrl());
}