You are here

trait GridStackUnitTestTrait in GridStack 8

Same name and namespace in other branches
  1. 8.2 tests/src/Traits/GridStackUnitTestTrait.php \Drupal\Tests\gridstack\Traits\GridStackUnitTestTrait

A Trait common for GridStack Unit tests.

Hierarchy

3 files declare their use of GridStackUnitTestTrait
GridStackFileFormatterTest.php in tests/src/Kernel/GridStackFileFormatterTest.php
GridStackFormatterTest.php in tests/src/Kernel/GridStackFormatterTest.php
GridStackManagerTest.php in tests/src/Kernel/GridStackManagerTest.php

File

tests/src/Traits/GridStackUnitTestTrait.php, line 8

Namespace

Drupal\Tests\gridstack\Traits
View source
trait GridStackUnitTestTrait {

  /**
   * Defines scoped definition.
   */
  protected function getGridStackFormatterDefinition() {
    return [
      'namespace' => 'gridstack',
    ] + $this
      ->getFormatterDefinition() + $this
      ->getDefaulEntityFormatterDefinition();
  }

}

Members