You are here

public function NodeViewCountBaseFunctionalityTest::testNodesWithFullViewMode in Node view count 8

Test nodeviewcount js for nodes in full view mode.

File

src/Tests/NodeViewCountBaseFunctionalityTest.php, line 52

Class

NodeViewCountBaseFunctionalityTest
Tests the base functionality of nodeviewcount module.

Namespace

Drupal\nodeviewcount\Tests

Code

public function testNodesWithFullViewMode() {
  $this
    ->checkFullViewMode('anonymous', $this->firstTestTrackedNode, TRUE);
  $this
    ->checkFullViewMode('anonymous', $this->testNotTrackedNode, FALSE);
  $this
    ->checkFullViewMode('logged', $this->firstTestTrackedNode, TRUE);
  $this
    ->checkFullViewMode('logged', $this->testNotTrackedNode, FALSE);
  $this
    ->checkFullViewMode('administrator', $this->firstTestTrackedNode, FALSE);
  $this
    ->checkFullViewMode('administrator', $this->testNotTrackedNode, FALSE);
}