You are here

protected function GridStackFormUnitTest::setUp in GridStack 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/Form/GridStackFormUnitTest.php \Drupal\Tests\gridstack\Unit\Form\GridStackFormUnitTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/Form/GridStackFormUnitTest.php, line 28

Class

GridStackFormUnitTest
Tests the GridStack admin form.

Namespace

Drupal\Tests\gridstack\Unit\Form

Code

protected function setUp() {
  parent::setUp();
  $this->fileSystem = $this
    ->getMockBuilder('\\Drupal\\Core\\File\\FileSystem')
    ->disableOriginalConstructor()
    ->getMock();
  $this->messenger = $this
    ->getMockBuilder('\\Drupal\\Core\\Messenger\\Messenger')
    ->disableOriginalConstructor()
    ->getMock();
  $this->blazyAdmin = $this
    ->getMockBuilder('\\Drupal\\blazy\\Form\\BlazyAdminInterface')
    ->disableOriginalConstructor()
    ->getMock();
  $this->gridstackManager = $this
    ->getMock('\\Drupal\\gridstack\\GridStackManagerInterface');
}