diff --git a/core/modules/aggregator/src/Tests/Views/AggregatorFeedViewsFieldAccessTest.php b/core/modules/aggregator/src/Tests/Views/AggregatorFeedViewsFieldAccessTest.php index cd6bf4b..13ca9d0 100644 --- a/core/modules/aggregator/src/Tests/Views/AggregatorFeedViewsFieldAccessTest.php +++ b/core/modules/aggregator/src/Tests/Views/AggregatorFeedViewsFieldAccessTest.php @@ -35,7 +35,7 @@ protected function setUp($import_test_views = TRUE) { * Checks access for aggregator_feed fields. */ public function testAggregatorFeedFields() { - $feed = Feed::create([ + $feed = Feed::create([ 'title' => 'Drupal org', 'url' => 'https://www.drupal.org/rss.xml', 'link' => 'https://www.drupal.org/rss.xml', @@ -43,12 +43,10 @@ public function testAggregatorFeedFields() { 'refresh' => 60, 'checked' => 1, 'queued' => 0, - 'description' => 'Get description of feed', - 'image' => 'Get description of feed', - 'hash' => 'Get hash', - 'etag' => 'Get entity tag', - 'modified' => 1, - + 'description' => '', + 'image' => '', + 'etag' => '', + 'modified' => REQUEST_TIME, ]); $feed->save(); diff --git a/core/modules/comment/src/Tests/Views/CommentViewsFieldAccessTest.php b/core/modules/comment/src/Tests/Views/CommentViewsFieldAccessTest.php index 31b9d36..5583c5d 100644 --- a/core/modules/comment/src/Tests/Views/CommentViewsFieldAccessTest.php +++ b/core/modules/comment/src/Tests/Views/CommentViewsFieldAccessTest.php @@ -46,11 +46,10 @@ public function testCommentFields() { 'uid' => $user->id(), 'entity_type' => 'entity_test', 'comment_type' => 'entity_test', - //'entity_id' => 'entity_test', + 'entity_id' => 'entity_test', 'hostname' => '127.0.0.1', 'thread' => 'entity_test', 'field_name' => 'entity_test', - ]); $comment->save(); @@ -64,7 +63,7 @@ public function testCommentFields() { 'comment_type' => 'entity_test', 'created' => 123456, 'status' => 1, - ]); + ]); $comment_anonymous->save(); // @todo Expand the test coverage in https://www.drupal.org/node/2464635 @@ -72,7 +71,7 @@ public function testCommentFields() { $this->assertFieldAccess('comment', 'cid', $comment->id()); $this->assertFieldAccess('comment', 'cid', $comment_anonymous->id()); - // $this->assertFieldAccess('comment', 'comment_type', $comment->getTypeId()); + $this->assertFieldAccess('comment', 'comment_type', $comment->getTypeId()); $this->assertFieldAccess('comment', 'langcode', $comment->language()->getName()); $this->assertFieldAccess('comment', 'uuid', $comment->uuid()); $this->assertFieldAccess('comment', 'subject', 'My comment title'); diff --git a/core/modules/views/src/Tests/Handler/EntityTestViewsFieldAccessTest.php b/core/modules/views/src/Tests/Handler/EntityTestViewsFieldAccessTest.php index 1431322..6dcfa81 100644 --- a/core/modules/views/src/Tests/Handler/EntityTestViewsFieldAccessTest.php +++ b/core/modules/views/src/Tests/Handler/EntityTestViewsFieldAccessTest.php @@ -32,7 +32,7 @@ protected function setUp($import_test_views = TRUE) { public function testEntityTestFields() { $entity_test = EntityTest::create([ 'name' => 'test entity name', - ]); + ]); $entity_test->save(); // @todo Expand the test coverage in https://www.drupal.org/node/2464635 @@ -41,6 +41,6 @@ public function testEntityTestFields() { $this->assertFieldAccess('entity_test', 'langcode', $entity_test->language()->getName()); $this->assertFieldAccess('entity_test', 'name', $entity_test->getName()); $this->assertFieldAccess('entity_test', 'uuid', $entity_test->uuid()); - } + } }