Further modules included.
[yaffs-website] / web / modules / contrib / libraries / tests / src / Kernel / ExternalLibrary / Asset / AssetLibraryTestBase.php
1 <?php
2
3 namespace Drupal\Tests\libraries\Kernel\ExternalLibrary\Asset;
4
5 use Drupal\Tests\libraries\Kernel\LibraryTypeKernelTestBase;
6
7 /**
8  * Provides a base test class for asset library type tests.
9  */
10 abstract class AssetLibraryTestBase extends LibraryTypeKernelTestBase {
11
12   /**
13    * {@inheritdoc}
14    *
15    * LibraryManager requires system_get_info() which is in system.module.
16    *
17    * @see \Drupal\libraries\ExternalLibrary\LibraryManager::getRequiredLibraryIds()
18    */
19   public static $modules = ['system'];
20
21   /**
22    * The Drupal core library discovery.
23    *
24    * @var \Drupal\Core\Asset\LibraryDiscoveryInterface
25    */
26   protected $coreLibraryDiscovery;
27
28   /**
29    * {@inheritdoc}
30    */
31   protected function setUp() {
32     parent::setUp();
33     $this->coreLibraryDiscovery = $this->container->get('library.discovery');
34   }
35
36 }