You are here

public function ResetFacetsProcessorTest::setUp in Facets 8

Overrides UnitTestCase::setUp

File

modules/facets_summary/tests/src/Unit/Plugin/Processor/ResetFacetsProcessorTest.php, line 29

Class

ResetFacetsProcessorTest
Class ResetFacetsProcessorTest.

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 ResetFacetsProcessor([
    'settings' => [
      'link_text' => 'Text',
    ],
  ], 'reset_facets', []);
}