You are here

public function GeneralTest::testTablesList in OptimizeDB 8

Sizes tables.

File

tests/src/Functional/GeneralTest.php, line 56

Class

GeneralTest
Test the module functions.

Namespace

Drupal\Tests\optimizedb\Functional

Code

public function testTablesList() {
  $this
    ->config('optimizedb.settings')
    ->set('tables_size', 0)
    ->save();

  // Function for output all database tables and update their total size.
  _optimizedb_tables_list();
  $this
    ->assertNotEqual($this
    ->config('optimizedb.settings')
    ->get('tables_size'), 0);
}