diff --git a/core/modules/comment/src/Tests/Views/CommentAdminTest.php b/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php similarity index 97% rename from core/modules/comment/src/Tests/Views/CommentAdminTest.php rename to core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php index c834bca..0457ce7 100644 --- a/core/modules/comment/src/Tests/Views/CommentAdminTest.php +++ b/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php @@ -1,13 +1,13 @@ install(['views']); $view = Views::getView('comment'); $view->storage->enable()->save(); diff --git a/core/modules/comment/src/Tests/Views/CommentEditTest.php b/core/modules/comment/tests/src/Functional/Views/CommentEditTest.php similarity index 75% rename from core/modules/comment/src/Tests/Views/CommentEditTest.php rename to core/modules/comment/tests/src/Functional/Views/CommentEditTest.php index 2a11ef9..fb5f736 100644 --- a/core/modules/comment/src/Tests/Views/CommentEditTest.php +++ b/core/modules/comment/tests/src/Functional/Views/CommentEditTest.php @@ -1,15 +1,15 @@ postComment($this->node, $this->randomMachineName(), $this->randomMachineName(), TRUE); $this->drupalGet('admin/content/comment'); $this->assertText($this->adminUser->label()); - $this->drupalGet($node_comment->toUrl('edit-form')->toString()); + $this->drupalGet($node_comment->toUrl('edit-form')); $edit = [ 'comment_body[0][value]' => $this->randomMachineName(), ]; diff --git a/core/modules/comment/src/Tests/Views/WizardTest.php b/core/modules/comment/tests/src/Functional/Views/WizardTest.php similarity index 92% rename from core/modules/comment/src/Tests/Views/WizardTest.php rename to core/modules/comment/tests/src/Functional/Views/WizardTest.php index a7f14c8..62fada9 100644 --- a/core/modules/comment/src/Tests/Views/WizardTest.php +++ b/core/modules/comment/tests/src/Functional/Views/WizardTest.php @@ -1,10 +1,10 @@ drupalCreateContentType(['type' => 'page', 'name' => t('Basic page')]); // Add comment field to page node type. $this->addDefaultCommentField('node', 'page'); @@ -63,7 +63,7 @@ public function testCommentWizard() { foreach ($fields as $field) { $items = $this->getAllOptions($field); foreach ($items as $item) { - $options[] = $item->attributes()->value; + $options[] = $item->getValue(); } } $expected_options = ['entity:comment', 'fields'];