You are here

public function HideWhenNotRenderedProcessorTest::testBuild in Facets 8

Tests the build method, containing the actual work of the processor.

@covers ::build

File

modules/facets_summary/tests/src/Unit/Plugin/Processor/HideWhenNotRenderedProcessorTest.php, line 58

Class

HideWhenNotRenderedProcessorTest
Class HideWhenNotRenderedProcessorTest.

Namespace

Drupal\Tests\facets_summary\Unit\Plugin\Processor

Code

public function testBuild() {
  $this
    ->createContainer(TRUE);
  $summary = new FacetsSummary([], 'facets_summary');
  $summary
    ->setFacetSourceId('foo');
  $result = $this->processor
    ->build($summary, [
    'foo',
  ], []);
  $this
    ->assertEquals([
    'foo',
  ], $result);
}