You are here

public function RestIncidentStorageTest::setUp in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x tests/src/Unit/RestIncidentStorageTest.php \Drupal\Tests\radioactivity\Unit\RestIncidentStorageTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/RestIncidentStorageTest.php, line 27

Class

RestIncidentStorageTest
@coversDefaultClass \Drupal\radioactivity\RestIncidentStorage @group radioactivity

Namespace

Drupal\Tests\radioactivity\Unit

Code

public function setUp() : void {
  parent::setUp();
  $this->sut = $this
    ->getMockBuilder(RestIncidentStorage::class)
    ->disableOriginalConstructor()
    ->setMethods([
    'getDefaultEndpoint',
    'getIncidentsFromStorage',
    'clearIncidentStorage',
  ])
    ->getMock();

  // Initiate the Settings singleton used by this test.
  new Settings([
    'hash_salt' => 'liesjeleerdelotjelopen',
  ]);
}