You are here

public function RenderStackTest::test_callOriginalFunction in Render cache 7.2

@covers ::callOriginalFunction()

File

tests/src/Cache/RenderStackTest.php, line 826
Contains \Drupal\render_cache\Tests\Cache\RenderStackTest

Class

RenderStackTest
@coversDefaultClass \Drupal\render_cache\Cache\RenderStack @group cache

Namespace

Drupal\render_cache\Tests\Cache

Code

public function test_callOriginalFunction() {
  $this->renderStack
    ->shouldDeferMissing();
  $result = $this->renderStack
    ->callOriginalFunction('\\Drupal\\render_cache\\Tests\\Cache\\RenderStackTest::renderStackTest', 42, 23);
  $this
    ->assertEquals(42 + 23, $result);
}