diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewAjaxTest.php b/core/modules/views/lib/Drupal/views/Tests/ViewAjaxTest.php index acba94d..68fdaae 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewAjaxTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewAjaxTest.php @@ -57,10 +57,10 @@ public function testAjaxView() { $data = Json::decode($response); // Ensure that the view insert command is part of the result. - $this->assertEqual($data[1]->command, 'insert'); - $this->assertTrue(strpos($data[1]->selector, '.view-dom-id-') === 0); + $this->assertEqual($data[1]['command'], 'insert'); + $this->assertTrue(strpos($data[1]['selector'], '.view-dom-id-') === 0); - $this->drupalSetContent($data[1]->data); + $this->drupalSetContent($data[1]['data']); $result = $this->xpath('//div[contains(@class, "views-row")]'); $this->assertEqual(count($result), 2, 'Ensure that two items are renderd in the HTML.'); }