NodeorderInstallTest.php in Node Order 8
File
tests/src/Kernel/NodeorderInstallTest.php
View source
<?php
namespace Drupal\Tests\nodeorder\Kernel;
class NodeorderInstallTest extends NodeorderInstallTestBase {
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);
}
}