function YandexMetricsCounterTestCase::testCounterCodeDefault in Yandex.Metrics 7.2
Same name and namespace in other branches
- 7.3 yandex_metrics.test \YandexMetricsCounterTestCase::testCounterCodeDefault()
Test counter code with default module settings.
File
- ./
yandex_metrics.test, line 83 - Tests for Yandex.Metrics Counter module.
Class
- YandexMetricsCounterTestCase
- Tests of functionality and settings of Yandex.Metrics Counter module.
Code
function testCounterCodeDefault() {
// Anonymous user.
// Front page.
$this
->drupalGet('');
$this
->checkCounter();
// 404 page.
$this
->drupalGet('404');
$this
->checkCounter();
// Administration page.
$this
->drupalGet('admin');
$this
->checkNoCounter();
// Login as administrator.
$this
->drupalLogin($this->admin_user);
// Front page.
$this
->drupalGet('');
$this
->checkCounter();
// Administration page.
$this
->drupalGet('admin/content');
$this
->checkNoCounter();
}