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\UnitCode
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' => [],
];
}