function ip2countryTestCase::testDBUpdateLogging in IP-based Determination of a Visitor's Country 6
Same name and namespace in other branches
- 7 tests/ip2country.test \ip2countryTestCase::testDbUpdateLogging()
Tests logging of DB updates.
File
- ./
ip2country.test, line 359 - Tests suite for the ip2country module.
Class
- ip2countryTestCase
- Need 1 class for unit tests, 1 class for functional tests 1 function for DB tests because filling takes so long
Code
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.'));
}