You are here

public function ProcessorIntegrationTest::testHiddenProcessors in Facets 8

Tests that processors are hidden when the correct fields aren't there.

File

tests/src/Functional/ProcessorIntegrationTest.php, line 828

Class

ProcessorIntegrationTest
Tests the processor functionality.

Namespace

Drupal\Tests\facets\Functional

Code

public function testHiddenProcessors() {
  $facet_id = 'alpaca';
  $this->editForm = 'admin/config/search/facets/' . $facet_id . '/edit';
  $this
    ->createFacet('Alpaca', $facet_id);
  $this
    ->drupalGet($this->editForm);
  $this
    ->assertSession()
    ->pageTextNotContains('Boolean item label');
  $this
    ->assertSession()
    ->pageTextNotContains('Transform UID to user name');
  $this
    ->assertSession()
    ->pageTextNotContains('Transform entity ID to label');
  $this
    ->assertSession()
    ->pageTextNotContains('Sort by taxonomy term weight');
}