function ViewsTest::testViewsService

Tests views service.

File

core/modules/mysql/tests/src/Kernel/mysql/ViewsTest.php, line 21

Class

ViewsTest
Tests views service.

Namespace

Drupal\Tests\mysql\Kernel\mysql

Code

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.