public function JQueryColorpickerServiceTest::setUp in Jquery Colorpicker 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/Service/jQueryColorpickerServiceTest.php \Drupal\Test\jquery_colorpicker\Service\JQueryColorpickerServiceTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Service/ jQueryColorpickerServiceTest.php, line 27
Class
- JQueryColorpickerServiceTest
- @coversDefaultClass \Drupal\jquery_colorpicker\Service\JQueryColorpickerService @group jquery_colorpicker
Namespace
Drupal\Test\jquery_colorpicker\ServiceCode
public function setUp() {
$container = new ContainerBuilder();
$container
->set('string_translation', $this
->getStringTranslationStub());
\Drupal::setContainer($container);
$this->JQueryColorpickerService = new JQueryColorpickerService();
}