You are here

public function DependentFacetProcessorTest::testNotConfigured in Facets 8

Tests to no-config case.

File

tests/src/Unit/Plugin/processor/DependentFacetProcessorTest.php, line 44

Class

DependentFacetProcessorTest
Unit test for processor.

Namespace

Drupal\Tests\facets\Unit\Plugin\processor

Code

public function testNotConfigured() {
  $facetManager = $this
    ->prophesize(DefaultFacetManager::class)
    ->reveal();
  $etm = $this
    ->prophesize(EntityTypeManagerInterface::class)
    ->reveal();
  $dfp = new DependentFacetProcessor([], 'dependent_facet_processor', [], $facetManager, $etm);
  $facet = new Facet([
    'id' => 'owl',
    'name' => 'øwl',
  ], 'facets_facet');
  $computed = $dfp
    ->build($facet, $this->results);
  $this
    ->assertEquals($computed, $this->results);
}