You are here

public function ConfigActionsPluginBaseTest::setUp in Config Actions 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/ConfigActionsPluginBaseTest.php, line 29

Class

ConfigActionsPluginBaseTest
test the ConfigActionsPluginBase class

Namespace

Drupal\Tests\config_actions\Unit

Code

public function setUp() {
  parent::setUp();
  $container = new ContainerBuilder();
  $this->configActions = $this
    ->createMock(ConfigActionsServiceInterface::class);
  $container
    ->set('config_actions', $this->configActions);
  \Drupal::setContainer($container);
  $this->definition = [
    'options' => [],
    'replace_in' => [],
    'data' => [],
  ];
}