You are here

DsServiceTest.php in Display Suite 8.4

Same filename and directory in other branches
  1. 8.3 tests/src/Unit/DsServiceTest.php

File

tests/src/Unit/DsServiceTest.php
View source
<?php

namespace Drupal\Tests\ds\Unit;

use Drupal\ds\Ds;
use Drupal\Tests\UnitTestCase;

/**
 * @coversDefaultClass \Drupal\ds\Ds
 * @group ds
 */
class DsServiceTest extends UnitTestCase {

  /**
   * @covers ::getLayouts
   */
  public function testMissingLayoutService() {
    $this
      ->assertFalse(\Drupal::hasService('plugin.manager.core.layout'));
    $this
      ->assertSame([], Ds::getLayouts());
  }

}

Classes

Namesort descending Description
DsServiceTest @coversDefaultClass \Drupal\ds\Ds @group ds