You are here

private function StorageFactoryTest::setConfig in Radioactivity 8.3

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

Sets mock configuration for StorageFactory.

Parameters

mixed $storageType: The configured storage type.

mixed $endpoint: The configured endpoint.

1 call to StorageFactoryTest::setConfig()
StorageFactoryTest::testGetConfiguredStorage in tests/src/Unit/StorageFactoryTest.php
@covers ::getConfiguredStorage @dataProvider providerGetConfiguredStorage

File

tests/src/Unit/StorageFactoryTest.php, line 159

Class

StorageFactoryTest
@coversDefaultClass \Drupal\radioactivity\StorageFactory @group radioactivity

Namespace

Drupal\Tests\radioactivity\Unit

Code

private function setConfig($storageType, $endpoint) {
  $this->config
    ->expects($this
    ->any())
    ->method('get')
    ->will($this
    ->returnValueMap([
    [
      'type',
      $storageType,
    ],
    [
      'endpoint',
      $endpoint,
    ],
  ]));
}