public function RestIncidentStorageTest::setUp in Radioactivity 4.0.x
Same name and namespace in other branches
- 8.3 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\UnitCode
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',
]);
}