You are here

public function JQueryColorpickerServiceTest::setUp in Jquery Colorpicker 8

Same name and namespace in other branches
  1. 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\Service

Code

public function setUp() {
  $container = new ContainerBuilder();
  $container
    ->set('string_translation', $this
    ->getStringTranslationStub());
  \Drupal::setContainer($container);
  $this->JQueryColorpickerService = new JQueryColorpickerService();
}