function ViewsTest::testViewsService
Same name and namespace in other branches
- 11.x core/modules/mysql/tests/src/Kernel/mysql/ViewsTest.php \Drupal\Tests\mysql\Kernel\mysql\ViewsTest::testViewsService()
Tests views service.
File
-
core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ ViewsTest.php, line 23
Class
- ViewsTest
- Tests views service.
Namespace
Drupal\Tests\mysql\Kernel\mysqlCode
public function testViewsService() : void {
$this->assertFalse($this->container
->has('views.cast_sql'));
$this->enableModules([
'views',
]);
$this->assertInstanceOf(MysqlCastSql::class, $this->container
->get('views.cast_sql'));
$this->assertFalse($this->container
->has('mysql.views.cast_sql'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.