You are here

public function OptimizelySchemaTest::testSchemaCreation in Optimizely 8.3

Same name and namespace in other branches
  1. 8 src/Tests/OptimizelySchemaTest.php \Drupal\optimizely\Tests\OptimizelySchemaTest::testSchemaCreation()
  2. 8.0 src/Tests/OptimizelySchemaTest.php \Drupal\optimizely\Tests\OptimizelySchemaTest::testSchemaCreation()

Test that module's database table is created.

File

src/Tests/OptimizelySchemaTest.php, line 47

Class

OptimizelySchemaTest
Test schema creation.

Namespace

Drupal\optimizely\Tests

Code

public function testSchemaCreation() {
  $this
    ->drupalLogin($this->privilegedUser);
  $schema = \Drupal::moduleHandler()
    ->invoke('optimizely', 'schema');
  $this
    ->assertNotNull($schema, t('<strong>Optimizely table was created.</strong>'), 'Optimizely');
}