You are here

protected function XmlSitemapTestBase::assertWatchdogMessage in XML sitemap 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/XmlSitemapTestBase.php \Drupal\Tests\xmlsitemap\Functional\XmlSitemapTestBase::assertWatchdogMessage()

Assert Watchdog Message.

3 calls to XmlSitemapTestBase::assertWatchdogMessage()
XmlSitemapEnginesFunctionalTest::testCustomURL in xmlsitemap_engines/tests/src/Functional/XmlSitemapEnginesFunctionalTest.php
Check if custom urls are functional.
XmlSitemapEnginesFunctionalTest::testPing in xmlsitemap_engines/tests/src/Functional/XmlSitemapEnginesFunctionalTest.php
Check if ping works.
XmlSitemapEnginesFunctionalTest::testSubmitSitemaps in xmlsitemap_engines/tests/src/Functional/XmlSitemapEnginesFunctionalTest.php
Create sitemaps and send them to search engines.

File

tests/src/Functional/XmlSitemapTestBase.php, line 433

Class

XmlSitemapTestBase
Helper test class with some added functions for testing.

Namespace

Drupal\Tests\xmlsitemap\Functional

Code

protected function assertWatchdogMessage(array $conditions, $message = 'Watchdog message found.') {
  $this
    ->assertNotEmpty($this
    ->getWatchdogMessages($conditions), $message);
}