Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / comment / tests / src / Functional / Views / CommentRestExportTest.php
index 17e04b5c5cf775a7cbeb973190a1f5afbd470257..908a86a3592e94dc4c225db514c44e2182fcfd25 100644 (file)
@@ -46,14 +46,13 @@ class CommentRestExportTest extends CommentTestBase {
     $this->drupalLogin($user);
   }
 
-
   /**
    * Test comment row.
    */
   public function testCommentRestExport() {
     $this->drupalGet(sprintf('node/%d/comments', $this->nodeUserCommented->id()), ['query' => ['_format' => 'hal_json']]);
     $this->assertResponse(200);
-    $contents = Json::decode($this->getRawContent());
+    $contents = Json::decode($this->getSession()->getPage()->getContent());
     $this->assertEqual($contents[0]['subject'], 'How much wood would a woodchuck chuck');
     $this->assertEqual($contents[1]['subject'], 'A lot, apparently');
     $this->assertEqual(count($contents), 2);