You are here

public function ShowTextWhenEmptyProcessorTest::setUp in Facets 8

Overrides UnitTestCase::setUp

File

modules/facets_summary/tests/src/Unit/Plugin/Processor/ShowTextWhenEmptyProcessorTest.php, line 30

Class

ShowTextWhenEmptyProcessorTest
Class ShowTextWhenEmptyProcessorTest.

Namespace

Drupal\Tests\facets_summary\Unit\Plugin\Processor

Code

public function setUp() {
  parent::setUp();
  $string_translation = $this
    ->prophesize(TranslationInterface::class);
  $container = new ContainerBuilder();
  $container
    ->set('string_translation', $string_translation
    ->reveal());
  \Drupal::setContainer($container);
  $this->processor = new ShowTextWhenEmptyProcessor([], 'show_text_when_empty', []);
}