You are here

public function ip2countryTestCase::testDbUpdateLogging in IP-based Determination of a Visitor's Country 7

Same name and namespace in other branches
  1. 6 ip2country.test \ip2countryTestCase::testDBUpdateLogging()

Tests logging of DB updates.

File

tests/ip2country.test, line 337
Tests suite for the ip2country module.

Class

ip2countryTestCase
Tests operations of the IP to Country module.

Code

public function testDbUpdateLogging() {

  // Turn off logging.
  // Turn on logging.
  $edit = array(
    'ip2country_watchdog' => array(
      'test' => TRUE,
    ),
  );

  //$this->drupalPost(

  //  'admin/store/settings/countries/edit',
  //  $edit,
  //  t('Import')

  //);

  //$this->assertText(

  //  t('Database updated from @rir server.', array('@rir' => $rir)),
  //  t('Watchdog reported database update.')

  //);
  $this
    ->pass(t('testDbUpdateLogging passed.'));
}