You are here

public function CommandLineOrUnsafeMethodTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/PageCache/CommandLineOrUnsafeMethodTest.php \Drupal\Tests\Core\PageCache\CommandLineOrUnsafeMethodTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/PageCache/CommandLineOrUnsafeMethodTest.php, line 27
Contains \Drupal\Tests\Core\PageCache\CommandLineOrUnsafeMethodTest.

Class

CommandLineOrUnsafeMethodTest
@coversDefaultClass \Drupal\Core\PageCache\RequestPolicy\CommandLineOrUnsafeMethod @group PageCache

Namespace

Drupal\Tests\Core\PageCache

Code

public function setUp() {

  // Note that it is necessary to partially mock the class under test in
  // order to disable the isCli-check.
  $this->policy = $this
    ->getMock('Drupal\\Core\\PageCache\\RequestPolicy\\CommandLineOrUnsafeMethod', array(
    'isCli',
  ));
}