diff --git a/core/modules/views/src/Tests/Handler/AreaEntityTest.php b/core/modules/views/src/Tests/Handler/AreaEntityTest.php index b85d898..aa51b40 100644 --- a/core/modules/views/src/Tests/Handler/AreaEntityTest.php +++ b/core/modules/views/src/Tests/Handler/AreaEntityTest.php @@ -126,8 +126,8 @@ public function doTestRender($entities) { $preview = $view->preview('default', [$entities[1]->id()]); $this->setRawContent(\Drupal::service('renderer')->render($preview)); $view_class = 'view-dom-id-' . $view->dom_id; - $header_xpath = '//div[@class = "' . $view_class .'"]/div[1]'; - $footer_xpath = '//div[@class = "' . $view_class .'"]/div[3]'; + $header_xpath = '//div[@class = "' . $view_class . '"]/div[1]'; + $footer_xpath = '//div[@class = "' . $view_class . '"]/div[3]'; $result = $this->xpath($header_xpath); $this->assertTrue(strpos(trim((string) $result[0]), $entities[0]->label()) !== FALSE, 'The rendered entity appears in the header of the view.'); @@ -162,7 +162,7 @@ public function doTestRender($entities) { $preview = $view->preview('default', array($entities[1]->id())); $this->setRawContent(drupal_render($preview)); $view_class = 'view-dom-id-' . $view->dom_id; - $result = $this->xpath('//div[@class = "' . $view_class .'"]/div[1]'); + $result = $this->xpath('//div[@class = "' . $view_class . '"]/div[1]'); $this->assertTrue(strpos(trim((string) $result[0]), $entities[0]->label()) !== FALSE, 'The rendered entity appears in the header of the view.'); $this->assertTrue(strpos(trim((string) $result[0]), 'test') !== FALSE, 'The rendered entity appeared in the right view mode.'); @@ -171,7 +171,7 @@ public function doTestRender($entities) { $preview = $view->preview('default', array($entities[2]->id())); $this->setRawContent(drupal_render($preview)); $view_class = 'view-dom-id-' . $view->dom_id; - $result = $this->xpath('//div[@class = "' . $view_class .'"]/div[3]'); + $result = $this->xpath('//div[@class = "' . $view_class . '"]/div[3]'); $this->assertTrue(strpos($result[0], $entities[2]->label()) === FALSE, 'The rendered entity does not appear in the footer of the view.'); // Test the available view mode options. diff --git a/core/modules/views/src/Tests/Handler/AreaViewTest.php b/core/modules/views/src/Tests/Handler/AreaViewTest.php index 91eb2e4..aa17063 100644 --- a/core/modules/views/src/Tests/Handler/AreaViewTest.php +++ b/core/modules/views/src/Tests/Handler/AreaViewTest.php @@ -44,7 +44,7 @@ public function testViewArea() { $this->executeView($view); $output = $view->render(); $output = drupal_render($output); - $this->assertTrue(strpos($output, 'view-dom-id-'. $view->dom_id) !== FALSE, 'The test view is correctly embedded.'); + $this->assertTrue(strpos($output, 'view-dom-id-' . $view->dom_id) !== FALSE, 'The test view is correctly embedded.'); $view->destroy(); $view->setArguments(array(27));