You are here

public function ViewContentEventTest::testNotEnabled in Simple Facebook Pixel 8

Tests the case when ViewContent is not enabled.

File

tests/src/Functional/ViewContentEventTest.php, line 64

Class

ViewContentEventTest
Tests View Content event.

Namespace

Drupal\Tests\simple_facebook_pixel\Functional

Code

public function testNotEnabled() {
  $this->configFactory
    ->getEditable('simple_facebook_pixel.settings')
    ->set('pixel_id', '1234567890')
    ->save();
  $this
    ->drupalGet('<front>');
  $this
    ->assertSession()
    ->responseNotContains('ViewContent');
}