You are here

public function Ip2CountryTest::testDbManualUpdate in IP-based Determination of a Visitor's Country 8

Tests manual DB update.

File

tests/src/Functional/Ip2CountryTest.php, line 301

Class

Ip2CountryTest
Tests operations of the IP to Country module.

Namespace

Drupal\Tests\ip2country\Functional

Code

public function testDbManualUpdate() {

  // $this->clickLink('Update');
  $connection = \Drupal::database();
  $rows = $connection
    ->select('ip2country')
    ->countQuery()
    ->execute()
    ->fetchField();

  // Check that Database was updated manually.
  // $assert->pageTextContains(
  //   'The IP to Country database has been updated from ' . mb_strtoupper($rir) . '. ' . $rows . ' rows affected.'
  // );
  $this
    ->assertTrue(TRUE, 'testDbManualUpdate passed.');
}