You are here

public function NodeorderInstallTest::testInstall in Node Order 8

Tests module installation.

File

tests/src/Kernel/NodeorderInstallTest.php, line 15

Class

NodeorderInstallTest
Tests module installation.

Namespace

Drupal\Tests\nodeorder\Kernel

Code

public function testInstall() {
  $schema = $this->database
    ->schema();
  $column_exists = $schema
    ->fieldExists('taxonomy_index', 'weight');
  $this
    ->assertTrue($column_exists);
  $index_exists = $schema
    ->indexExists('taxonomy_index', 'weight');
  $this
    ->assertTrue($index_exists);
  $extension_config = $this->container
    ->get('config.factory')
    ->getEditable('core.extension');
  $this
    ->assertEqual($extension_config
    ->get('module.nodeorder'), 5);
}