You are here

private function AcquiaLiftsWebTest::assertNoLiftIdentityMetaTag in Acquia Lift Connector 7.3

Helper function to assert that a meta tag is not found in the page

1 call to AcquiaLiftsWebTest::assertNoLiftIdentityMetaTag()
AcquiaLiftsWebTest::testIdentityParams in tests/acquia_lift.test
Tests identity param configuration and js settings.

File

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

Class

AcquiaLiftsWebTest
Tests Acquia Lift functionality.

Code

private function assertNoLiftIdentityMetaTag($name = NULL) {
  $pattern = '/<meta (?=[^>]*itemprop="acquia_lift:identity';
  if ($name) {
    $pattern .= preg_quote($name, '/');
  }
  $pattern .= ')/';
  $this
    ->assertNoPattern($pattern, 'Did not find meta tag for ' . $name);
}