You are here

function ip2countryTestCase::testDBManualUpdate in IP-based Determination of a Visitor's Country 6

Same name and namespace in other branches
  1. 7 tests/ip2country.test \ip2countryTestCase::testDbManualUpdate()

Tests manual DB update.

File

./ip2country.test, line 339
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 testDBManualUpdate() {

  //$this->clickLink(t('Update'));
  $rows = db_result(db_query('SELECT COUNT(*) FROM {ip2country}'));

  //$this->assertText(

  //  t('The IP to Country database has been updated from @rir. @rows rows affected.', array('@rir' => $rir, '@rows' => $rows)),
  //  t('Database was updated manually.')

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