You are here

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

Tests logging of DB updates.

File

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

Class

Ip2CountryTest
Tests operations of the IP to Country module.

Namespace

Drupal\Tests\ip2country\Functional

Code

public function testDbUpdateLogging() {

  // Turn off logging.
  // Turn on logging.
  $edit = [
    'ip2country_watchdog' => [
      'test' => TRUE,
    ],
  ];

  // $this->drupalPost(
  //   'admin/store/settings/countries/edit',
  //   $edit,
  //   'Import'
  // );
  // Check that watchdog reported database update.
  // $assert->pageTextContains('Database updated from ' . mb_strtoupper($rir) . ' server.');
  $this
    ->assertTrue(TRUE, 'testDbUpdateLogging passed.');
}