diff --git a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php index 0b4aff1..80aff57 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php @@ -2888,8 +2888,8 @@ protected function assertNoTitle($title, $message = '', $group = 'Other') { * TRUE on pass, FALSE on fail. */ protected function assertThemeOutput($callback, array $variables = array(), $expected, $message = '', $group = 'Other') { - $theme_output = array('#theme' => $callback, $variables; - $output = drupal_render($$theme_output); + $theme_output = array('#theme' => $callback, $variables); + $output = drupal_render($theme_output); $this->verbose('Variables:' . '
' . check_plain(var_export($variables, TRUE)) . '' . '
' . check_plain(var_export($output, TRUE)) . '' . '
' . check_plain(var_export($expected, TRUE)) . '' diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php index 52011a4..7ba14ae 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/TableTest.php @@ -28,7 +28,7 @@ function testThemeTableStickyHeaders() { $header = array('one', 'two', 'three'); $rows = array(array(1,2,3), array(4,5,6), array(7,8,9)); $table = array('#theme' => 'table', '#header' => $header, '#rows' => $rows, '#sticky' => TRUE); - $this->content = drupal_render($$table); + $this->content = drupal_render($table); $js = _drupal_add_js(); $this->assertTrue(isset($js['core/misc/tableheader.js']), 'tableheader.js was included when $sticky = TRUE.'); $this->assertRaw('sticky-enabled', 'Table has a class of sticky-enabled when $sticky = TRUE.'); @@ -45,7 +45,7 @@ function testThemeTableNoStickyHeaders() { $caption = NULL; $colgroups = array(); $table =array('#theme' => 'table', '#header' => $header, '#rows' => $rows, '#attributes' => $attributes, '#caption' => $caption, '#colgroups' => $colgroups, '#sticky' => FALSE); - $this->content = drupal_render($$table); + $this->content = drupal_render($table); $js = _drupal_add_js(); $this->assertFalse(isset($js['core/misc/tableheader.js']), 'tableheader.js was not included because $sticky = FALSE.'); $this->assertNoRaw('sticky-enabled', 'Table does not have a class of sticky-enabled because $sticky = FALSE.'); diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/TwigDebugMarkupTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/TwigDebugMarkupTest.php index 5f9e5e6..43934ea 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/TwigDebugMarkupTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/TwigDebugMarkupTest.php @@ -34,7 +34,7 @@ public static function getInfo() { */ function testTwigDebugMarkup() { $extension = twig_extension(); - \Drupal::service('theme_handler')->enable((array('test_theme')); + \Drupal::service('theme_handler')->enable(array('test_theme')); \Drupal::config('system.theme')->set('default', 'test_theme')->save(); // Enable debug, rebuild the service container, and clear all caches. $this->settingsSet('twig_debug', TRUE); @@ -48,7 +48,7 @@ function testTwigDebugMarkup() { // Create a node and test different features of the debug markup. $node = $this->drupalCreateNode(); - $node_output = array('#theme' => 'node', 'node' => node_view($node); + $node_output = array('#theme' => 'node', 'node' => node_view($node)); $output = drupal_render($node_output); $this->assertTrue(strpos($output, '') !== FALSE, 'Twig debug markup found in theme output when debug is enabled.'); $this->assertTrue(strpos($output, "CALL: drupal_render($node_output)") !== FALSE, 'Theme call information found.'); @@ -60,7 +60,7 @@ function testTwigDebugMarkup() { // Create another node and make sure the template suggestions shown in the // debug markup are correct. $node2 = $this->drupalCreateNode(); - $node2_output = array('#theme' => 'node', 'node' => node_view($node2); + $node2_output = array('#theme' => 'node', 'node' => node_view($node2)); $output = drupal_render($node2_output); $this->assertTrue(strpos($output, '* node--2' . $extension) !== FALSE, 'Node ID specific template suggestion found.'); $this->assertTrue(strpos($output, 'x node' . $extension) !== FALSE, 'Base template file shown as current template.'); @@ -70,7 +70,7 @@ function testTwigDebugMarkup() { $this->rebuildContainer(); $this->resetAll(); - $node_output2 = array('#theme' => 'node', 'node' => node_view($node); + $node_output2 = array('#theme' => 'node', 'node' => node_view($node)); $output = drupal_render($node_output2); $this->assertFalse(strpos($output, '') !== FALSE, 'Twig debug markup not found in theme output when debug is disabled.'); }