You are here

public function HideWhenNotRenderedProcessorTest::testBuildWithNoCurrentRequest 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 73

Class

HideWhenNotRenderedProcessorTest
Class HideWhenNotRenderedProcessorTest.

Namespace

Drupal\Tests\facets_summary\Unit\Plugin\Processor

Code

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