You are here

public function GroupingBuildFormTest::setUp in Search API Grouping 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/GroupingBuildFormTest.php, line 36

Class

GroupingBuildFormTest
Test the getSupportedFields method.

Namespace

Drupal\Tests\search_api_grouping\Unit

Code

public function setUp($processor = NULL) {
  parent::setUp();
  $serviceTranslation = new TranslationManager(new LanguageDefault([
    'en',
  ]));
  $container = new ContainerBuilder();
  \Drupal::setContainer($container);
  $container
    ->set('string_translation', $serviceTranslation);
  $this->processor = new Grouping([], 'grouping', []);
}