-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathLibraryTest.php
59 lines (48 loc) · 1.07 KB
/
LibraryTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
namespace Drupal\Tests\wxt_library\Kernel;
use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\KernelTests\KernelTestBase;
/**
* Test migration config entity discovery.
*
* @group wxt
* @group wxt_library
*/
class LibraryTest extends KernelTestBase {
use SchemaCheckTestTrait;
/**
* Installation profile.
*
* @var string
*/
protected $profile = 'wxt';
/**
* Modules to install.
*
* @var array
*/
protected static $modules = [
'wxt_library',
];
/**
* Stores the wxt_library plugin manager.
*
* @var \Drupal\wxt_library\LibraryService
*/
protected $pluginManager;
/**
* Setup the test.
*/
protected function setUp(): void {
parent::setUp();
$this->installConfig('wxt_library');
$this->pluginManager = $this->container->get('wxt_library.service_wxt');
}
/**
* Test the library.
*/
public function testLibrary() {
$this->assertSame('wet_boew', $this->pluginManager->getLibraryName());
$this->assertSame('/libraries/theme-wet-boew', $this->pluginManager->getLibraryPath());
}
}