public function OptimizelySchemaTest::testSchemaCreation in Optimizely 8
Same name and namespace in other branches
- 8.3 src/Tests/OptimizelySchemaTest.php \Drupal\optimizely\Tests\OptimizelySchemaTest::testSchemaCreation()
- 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\TestsCode
public function testSchemaCreation() {
$this
->drupalLogin($this->privilegedUser);
$schema = \Drupal::moduleHandler()
->invoke('optimizely', 'schema');
$this
->assertNotNull($schema, t('<strong>Optimizely table was created.</strong>'), 'Optimizely');
}