public function YandexMetricsCounterTestCase::checkNoCounter in Yandex.Metrics 7.3
Same name and namespace in other branches
- 7.2 yandex_metrics.test \YandexMetricsCounterTestCase::checkNoCounter()
Try not to find Yandex.Metrics counter code on current page.
Return value
bool TRUE if counter code wasn't found.
3 calls to YandexMetricsCounterTestCase::checkNoCounter()
- YandexMetricsCounterTestCase::testCounterCodeDefault in ./
yandex_metrics.test - Test counter code with default module settings.
- YandexMetricsCounterTestCase::testCounterCodePagesSettings in ./
yandex_metrics.test - Test Yandex.Metrics page specific settings.
- YandexMetricsCounterTestCase::testCounterCodeRolesSettings in ./
yandex_metrics.test - Test Yandex.Metrics role specific settings.
File
- ./
yandex_metrics.test, line 77 - Tests for Yandex.Metrics Counter module.
Class
- YandexMetricsCounterTestCase
- Tests of functionality and settings of Yandex.Metrics Counter module.
Code
public function checkNoCounter() {
return $this
->assertNoPattern('@<div class="ym-counter">' . $this->yandexMetricsCode . '</div>@', 'Yandex.Metrica counter was not found on page.');
}