You are here

BlazyViewsTestBase.php in Blazy 8.2

Same filename and directory in other branches
  1. 8 tests/src/Kernel/Views/BlazyViewsTestBase.php

File

tests/src/Kernel/Views/BlazyViewsTestBase.php
View source
<?php

namespace Drupal\Tests\blazy\Kernel\Views;

use Drupal\Tests\views\Kernel\ViewsKernelTestBase;
use Drupal\Tests\blazy\Traits\BlazyKernelTestTrait;

/**
 * Defines base class for Blazy Views integration.
 */
abstract class BlazyViewsTestBase extends ViewsKernelTestBase {
  use BlazyKernelTestTrait;

  /**
   * Set to TRUE to strict check all configuration saved.
   *
   * Let's keep it enabled here for just in case core breaks it again related to
   * views.view.test_blazy_entity.
   *
   * @var bool
   * @see \Drupal\Core\Config\Development\ConfigSchemaChecker
   */
  protected $strictConfigSchema = TRUE;

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'system',
    'user',
    'field',
    'file',
    'image',
    'media',
    'breakpoint',
    'responsive_image',
    'filter',
    'link',
    'node',
    'text',
    'options',
    // @todo 'entity_test',
    'views',
    'blazy',
    'blazy_test',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp($import_test_views = TRUE) {
    parent::setUp($import_test_views);
    $this
      ->setUpVariables();
    $this
      ->setUpKernelInstall();
    $this
      ->setUpKernelManager();
    $this
      ->setUpRealImage();
  }

}

Classes

Namesort descending Description
BlazyViewsTestBase Defines base class for Blazy Views integration.