You are here

public function ConfigActionsSourceTest::setUp in Config Actions 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/ConfigActionsSourceTest.php, line 53

Class

ConfigActionsSourceTest
test the ConfigActionsSource plugins

Namespace

Drupal\Tests\config_actions\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installConfig('system');
  $this->sourceManager = $this->container
    ->get('plugin.manager.config_actions_source');

  /* @var \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager */
  $stream_wrapper_manager = $this
    ->createMock('Drupal\\Core\\StreamWrapper\\StreamWrapperManagerInterface');
  $settings = new Settings([]);
  $this->logger = $this
    ->createMock('Psr\\Log\\LoggerInterface');
  $this->fileSystem = new FileSystem($stream_wrapper_manager, $settings, $this->logger);
}