You are here

function AcquiaLiftsWebTest::testNodePage in Acquia Lift Connector 7.3

File

tests/acquia_lift.test, line 486
Tests for Acquia Lift Profiles module.

Class

AcquiaLiftsWebTest
Tests Acquia Lift functionality.

Code

function testNodePage() {
  $this
    ->configureLift();
  $post_id = $this->articles['one_tag']->nid;
  $this
    ->drupalGet('node/' . $post_id);
  $this
    ->assertLiftMetaTag('content_type', 'article');
  $this
    ->assertLiftMetaTag('context_language', 'en');
  $this
    ->assertLiftMetaTag('content_title');
  $this
    ->assertLiftMetaTag('published_date');
  $this
    ->assertLiftMetaTag('post_id', $post_id);

  // We should be asserting the actual UUID value too, but that will introduce
  // dependency to uuid module, therefore we are only asserting negative case.
  $this
    ->assertLiftMetaTag('content_uuid');
  $this
    ->assertLiftMetaTag('page_type', 'node page');
}