You are here

public function XMLSitemapEnginesFunctionalTest::submitEngines in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap_engines/tests/xmlsitemap_engines.test \XMLSitemapEnginesFunctionalTest::submitEngines()

Submit Engines.

2 calls to XMLSitemapEnginesFunctionalTest::submitEngines()
XMLSitemapEnginesFunctionalTest::testCustomURL in xmlsitemap_engines/tests/xmlsitemap_engines.test
Test Custom URL.
XMLSitemapEnginesFunctionalTest::testPing in xmlsitemap_engines/tests/xmlsitemap_engines.test
Test Ping.

File

xmlsitemap_engines/tests/xmlsitemap_engines.test, line 57
Tests for the xmlsitemap_engines module.

Class

XMLSitemapEnginesFunctionalTest
Functional Test.

Code

public function submitEngines() {
  variable_set('xmlsitemap_engines_submit_last', REQUEST_TIME - 10000);
  variable_set('xmlsitemap_generated_last', REQUEST_TIME - 100);
  variable_set('xmlsitemap_engines_minimum_lifetime', 0);
  xmlsitemap_engines_cron();
  $this
    ->assertTrue(variable_get('xmlsitemap_engines_submit_last', 0) > REQUEST_TIME - 100, 'Submitted the sitemaps to search engines.');
}