diff --git a/libraries.module b/libraries.module index 198e4832deaf050df7cab770f5a56e8fd16b35de..d339d759d09799f0c53030f17b00780eab8a630e 100644 --- a/libraries.module +++ b/libraries.module @@ -13,7 +13,7 @@ use Drupal\libraries\ExternalLibrary\Asset\AssetLibraryInterface; * Implements hook_library_info_build(). */ function libraries_library_info_build() { - /** @var \Drupal\libraries\ExternalLibrary\ExternalLibraryManagerInterface $library_manager */ + /** @var \Drupal\libraries\ExternalLibrary\LibraryManagerInterface $library_manager */ $library_manager = \Drupal::service('libraries.manager'); $core_libraries = []; diff --git a/src/Extension/ExtensionHandler.php b/src/Extension/ExtensionHandler.php index 37434decde822c610ce6184ef50c74865dff1078..89dc4b0ee66028c87ebba639dc5a3b20c12264a3 100644 --- a/src/Extension/ExtensionHandler.php +++ b/src/Extension/ExtensionHandler.php @@ -11,7 +11,6 @@ use Drupal\Core\Extension\Extension as CoreExtension; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ThemeHandlerInterface; - /** * @todo */ @@ -89,6 +88,4 @@ class ExtensionHandler implements ExtensionHandlerInterface { ); } - } - diff --git a/src/ExternalLibrary/Asset/AssetLibrary.php b/src/ExternalLibrary/Asset/AssetLibrary.php index 4d266f30b50052b849c8eb52775f9b6921c97bac..dedb5a9a137e653d0b0d2211770321475c276a82 100644 --- a/src/ExternalLibrary/Asset/AssetLibrary.php +++ b/src/ExternalLibrary/Asset/AssetLibrary.php @@ -7,7 +7,7 @@ namespace Drupal\libraries\ExternalLibrary\Asset; -use Drupal\libraries\ExternalLibrary\ExternalLibraryTrait; +use Drupal\libraries\ExternalLibrary\LibraryTrait; use Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface; use Drupal\libraries\ExternalLibrary\Local\LocalLibraryTrait; use Drupal\libraries\ExternalLibrary\Remote\RemoteLibraryInterface; @@ -19,7 +19,7 @@ use Drupal\libraries\ExternalLibrary\Remote\RemoteLibraryTrait; class AssetLibrary implements AssetLibraryInterface, LocalLibraryInterface, RemoteLibraryInterface { use - ExternalLibraryTrait, + LibraryTrait, LocalLibraryTrait, RemoteLibraryTrait, SingleAssetLibraryTrait, diff --git a/src/ExternalLibrary/Asset/AssetLibraryInterface.php b/src/ExternalLibrary/Asset/AssetLibraryInterface.php index b11040ca7fbf36cef6af17de6c1260f2641b7577..11bc11fb0421fc4fba44474caaabb8212ac3ed4f 100644 --- a/src/ExternalLibrary/Asset/AssetLibraryInterface.php +++ b/src/ExternalLibrary/Asset/AssetLibraryInterface.php @@ -7,7 +7,7 @@ namespace Drupal\libraries\ExternalLibrary\Asset; -use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface; +use Drupal\libraries\ExternalLibrary\LibraryInterface; /** * Provides an interface for library with assets. @@ -16,7 +16,7 @@ use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface; * * @todo Explain */ -interface AssetLibraryInterface extends ExternalLibraryInterface { +interface AssetLibraryInterface extends LibraryInterface { /** * Returns a core asset library array structure for this library. diff --git a/src/ExternalLibrary/Asset/SingleAssetLibraryTrait.php b/src/ExternalLibrary/Asset/SingleAssetLibraryTrait.php index 4bacad856321cffeff5fddc80e15c0b85348b549..2dca41573db26021c66c0ae5f6b9b5f231869bf6 100644 --- a/src/ExternalLibrary/Asset/SingleAssetLibraryTrait.php +++ b/src/ExternalLibrary/Asset/SingleAssetLibraryTrait.php @@ -47,7 +47,7 @@ trait SingleAssetLibraryTrait { /** * Processes a list of dependencies into a list of attachable library IDs. * - * @param \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface[] $dependencies + * @param \Drupal\libraries\ExternalLibrary\LibraryInterface[] $dependencies * An list of external libraries. * * @return string[] @@ -60,7 +60,7 @@ trait SingleAssetLibraryTrait { foreach ($dependencies as $dependency) { if (!$dependency instanceof AssetLibraryInterface) { // @todo Somehow integrate this with canBeAttached(). - /** @var \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface $this */ + /** @var \Drupal\libraries\ExternalLibrary\LibraryInterface $this */ throw new InvalidLibraryDependencyException($this, $dependency); } diff --git a/src/ExternalLibrary/Exception/InvalidLibraryDependencyException.php b/src/ExternalLibrary/Exception/InvalidLibraryDependencyException.php index 004691eac47c9602268b4475f37924512e22f427..6f0d1388a44929e208e08a00b7d513d18e968422 100644 --- a/src/ExternalLibrary/Exception/InvalidLibraryDependencyException.php +++ b/src/ExternalLibrary/Exception/InvalidLibraryDependencyException.php @@ -7,7 +7,7 @@ namespace Drupal\libraries\ExternalLibrary\Exception; use Drupal\libraries\ExternalLibrary\Utility\DependencyAccessorTrait; -use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface; +use Drupal\libraries\ExternalLibrary\LibraryInterface; use Drupal\libraries\ExternalLibrary\Utility\LibraryAccessorTrait; /** @@ -21,9 +21,9 @@ class InvalidLibraryDependencyException extends \UnexpectedValueException { /** * Constructs a library exception. * - * @param \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface $library + * @param \Drupal\libraries\ExternalLibrary\LibraryInterface $library * The library with the invalid dependency. - * @param \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface $dependency + * @param \Drupal\libraries\ExternalLibrary\LibraryInterface $dependency * The dependency. * @param string $message * (optional) The exception message. @@ -33,8 +33,8 @@ class InvalidLibraryDependencyException extends \UnexpectedValueException { * (optional) The previous exception. */ public function __construct( - ExternalLibraryInterface $library, - ExternalLibraryInterface $dependency, + LibraryInterface $library, + LibraryInterface $dependency, $message = '', $code = 0, \Exception $previous = NULL diff --git a/src/ExternalLibrary/ExternalLibraryInterface.php b/src/ExternalLibrary/LibraryInterface.php similarity index 91% rename from src/ExternalLibrary/ExternalLibraryInterface.php rename to src/ExternalLibrary/LibraryInterface.php index 211fb756a58dfe1cf82bcf0a2e35f6de55da7735..024bc2370093789c1c5a82be459bf2c384c97805 100644 --- a/src/ExternalLibrary/ExternalLibraryInterface.php +++ b/src/ExternalLibrary/LibraryInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface. + * Contains \Drupal\libraries\ExternalLibrary\LibraryInterface. */ namespace Drupal\libraries\ExternalLibrary; @@ -11,7 +11,7 @@ namespace Drupal\libraries\ExternalLibrary; /** * Provides an interface for different types of external libraries. */ -interface ExternalLibraryInterface { +interface LibraryInterface { /** * Returns the ID of the library. diff --git a/src/ExternalLibrary/ExternalLibraryManager.php b/src/ExternalLibrary/LibraryManager.php similarity index 78% rename from src/ExternalLibrary/ExternalLibraryManager.php rename to src/ExternalLibrary/LibraryManager.php index 74c92095ba38596cca45d1330cd645841f5be3a9..9e686caacad9c73a4e8dc2f05b5461647fc2692c 100644 --- a/src/ExternalLibrary/ExternalLibraryManager.php +++ b/src/ExternalLibrary/LibraryManager.php @@ -2,26 +2,24 @@ /** * @file - * Contains \Drupal\libraries\ExternalLibrary\ExternalLibraryManager. + * Contains \Drupal\libraries\ExternalLibrary\LibraryManager. */ namespace Drupal\libraries\ExternalLibrary; -use Drupal\Component\Plugin\Factory\FactoryInterface; use Drupal\libraries\Extension\ExtensionHandlerInterface; -use Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface; use Drupal\libraries\ExternalLibrary\PhpFile\PhpFileLibraryInterface; use Drupal\libraries\ExternalLibrary\PhpFile\PhpFileLoaderInterface; -use Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface; +use Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface; /** * Provides a manager for external libraries. */ -class ExternalLibraryManager implements ExternalLibraryManagerInterface { +class LibraryManager implements LibraryManagerInterface { /** * The library registry. * - * @var \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface + * @var \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface */ protected $registry; @@ -42,7 +40,7 @@ class ExternalLibraryManager implements ExternalLibraryManagerInterface { /** * Constructs an external library manager. * - * @param \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface $registry + * @param \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface $registry * The library registry. * @param \Drupal\libraries\Extension\ExtensionHandlerInterface $extension_handler * The extension handler. @@ -50,7 +48,7 @@ class ExternalLibraryManager implements ExternalLibraryManagerInterface { * The PHP file loader. */ public function __construct( - ExternalLibraryRegistryInterface $registry, + LibraryRegistryInterface $registry, ExtensionHandlerInterface $extension_handler, PhpFileLoaderInterface $php_file_loader ) { diff --git a/src/ExternalLibrary/ExternalLibraryManagerInterface.php b/src/ExternalLibrary/LibraryManagerInterface.php similarity index 81% rename from src/ExternalLibrary/ExternalLibraryManagerInterface.php rename to src/ExternalLibrary/LibraryManagerInterface.php index 2dc787b57aea2c3b8337b37b1380eb597bafc854..58e7dc8ad485e3fdb31335c16bce886c96d11a2a 100644 --- a/src/ExternalLibrary/ExternalLibraryManagerInterface.php +++ b/src/ExternalLibrary/LibraryManagerInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\libraries\ExternalLibrary\ExternalLibraryManagerInterface. + * Contains \Drupal\libraries\ExternalLibrary\LibraryManagerInterface. */ namespace Drupal\libraries\ExternalLibrary; @@ -11,7 +11,7 @@ namespace Drupal\libraries\ExternalLibrary; /** * Provides an interface for external library managers. */ -interface ExternalLibraryManagerInterface { +interface LibraryManagerInterface { /** * Gets the list of libraries that are required by enabled extensions. @@ -19,7 +19,7 @@ interface ExternalLibraryManagerInterface { * Modules, themes, and installation profiles can declare library dependencies * in their info files. * - * @return \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface[]|\Generator + * @return \Drupal\libraries\ExternalLibrary\LibraryInterface[]|\Generator * An array of libraries keyed by their ID. * * @todo Expand the documentation. diff --git a/src/ExternalLibrary/ExternalLibraryTrait.php b/src/ExternalLibrary/LibraryTrait.php similarity index 74% rename from src/ExternalLibrary/ExternalLibraryTrait.php rename to src/ExternalLibrary/LibraryTrait.php index f565fe7be0d910c4351065ff28594f7e9a2b5ca0..58e5036cfced04c3cd14d439196de6735fad7284 100644 --- a/src/ExternalLibrary/ExternalLibraryTrait.php +++ b/src/ExternalLibrary/LibraryTrait.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\libraries\ExternalLibrary\ExternalLibraryTrait. + * Contains \Drupal\libraries\ExternalLibrary\LibraryTrait. */ namespace Drupal\libraries\ExternalLibrary; @@ -10,7 +10,7 @@ namespace Drupal\libraries\ExternalLibrary; /** * Provides a base external library implementation. */ -trait ExternalLibraryTrait { +trait LibraryTrait { /** * The library ID. @@ -25,7 +25,7 @@ trait ExternalLibraryTrait { * @return string * The library ID. This must be unique among all known libraries. * - * @see \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface::getId() + * @see \Drupal\libraries\ExternalLibrary\LibraryInterface::getId() */ public function getId() { return $this->id; @@ -37,7 +37,7 @@ trait ExternalLibraryTrait { * @return string * The version string, for example 1.0, 2.1.4, or 3.0.0-alpha5. * - * @see \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface::getVersion() + * @see \Drupal\libraries\ExternalLibrary\LibraryInterface::getVersion() */ public function getVersion() { // @todo Turn into something useful and split into some other trait. @@ -50,7 +50,7 @@ trait ExternalLibraryTrait { * @return array * An array of library IDs of libraries that the library depends on. * - * @see \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface::getDependencies() + * @see \Drupal\libraries\ExternalLibrary\LibraryInterface::getDependencies() */ public function getDependencies() { // @todo Turn into something useful and split into some other trait. diff --git a/src/ExternalLibrary/Local/LocalLibraryInterface.php b/src/ExternalLibrary/Local/LocalLibraryInterface.php index 15d465043bf49d70a7b6282d2ef89865f2846a13..6da1e0e239334b14b31bbfae47cfcd1a3ca2b966 100644 --- a/src/ExternalLibrary/Local/LocalLibraryInterface.php +++ b/src/ExternalLibrary/Local/LocalLibraryInterface.php @@ -8,7 +8,7 @@ namespace Drupal\libraries\ExternalLibrary\Local; use Drupal\Component\Plugin\Factory\FactoryInterface; -use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface; +use Drupal\libraries\ExternalLibrary\LibraryInterface; /** * Provides an interface for local libraries. @@ -23,7 +23,7 @@ use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface; * * @see \Drupal\libraries\ExternalLibrary\Local\LocatorInterface */ -interface LocalLibraryInterface extends ExternalLibraryInterface { +interface LocalLibraryInterface extends LibraryInterface { /** * Checks whether the library is installed. diff --git a/src/ExternalLibrary/Local/LocatorInterface.php b/src/ExternalLibrary/Local/LocatorInterface.php index dbaad0cd898aa956625bee0c0b9413b9d80f0de8..4b8d03f20c03490b2805d3724de71bb8dcd3e8c6 100644 --- a/src/ExternalLibrary/Local/LocatorInterface.php +++ b/src/ExternalLibrary/Local/LocatorInterface.php @@ -7,8 +7,6 @@ namespace Drupal\libraries\ExternalLibrary\Local; -use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface; - /** * Provides an interface for library locators. * diff --git a/src/ExternalLibrary/PhpFile/PhpFileLibrary.php b/src/ExternalLibrary/PhpFile/PhpFileLibrary.php index 788f007e31d1c4f9de6e3f0653c50ffc6361028f..4ed4617d570a62524cfcb8f005d0ff2578e4122b 100644 --- a/src/ExternalLibrary/PhpFile/PhpFileLibrary.php +++ b/src/ExternalLibrary/PhpFile/PhpFileLibrary.php @@ -9,7 +9,7 @@ namespace Drupal\libraries\ExternalLibrary\PhpFile; use Drupal\Component\Plugin\Factory\FactoryInterface; use Drupal\libraries\ExternalLibrary\Exception\LibraryNotInstalledException; -use Drupal\libraries\ExternalLibrary\ExternalLibraryTrait; +use Drupal\libraries\ExternalLibrary\LibraryTrait; use Drupal\libraries\ExternalLibrary\Local\LocalLibraryTrait; /** @@ -17,7 +17,7 @@ use Drupal\libraries\ExternalLibrary\Local\LocalLibraryTrait; */ class PhpFileLibrary implements PhpFileLibraryInterface { - use ExternalLibraryTrait; + use LibraryTrait; use LocalLibraryTrait; /** diff --git a/src/ExternalLibrary/Registry/ExternalLibraryRegistry.php b/src/ExternalLibrary/Registry/LibraryRegistry.php similarity index 93% rename from src/ExternalLibrary/Registry/ExternalLibraryRegistry.php rename to src/ExternalLibrary/Registry/LibraryRegistry.php index a98e3b3964280763a72b582dbb16cb6f8f073e89..e038476d7083b6f15cc42467267142d5c518c6f8 100644 --- a/src/ExternalLibrary/Registry/ExternalLibraryRegistry.php +++ b/src/ExternalLibrary/Registry/LibraryRegistry.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistry. + * Contains \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistry. */ namespace Drupal\libraries\ExternalLibrary\Registry; @@ -19,7 +19,7 @@ use Drupal\libraries\ExternalLibrary\Local\LocalLibraryInterface; * @todo Allow for JavaScript CDN's, Packagist, etc. to act as library * registries. */ -class ExternalLibraryRegistry implements ExternalLibraryRegistryInterface { +class LibraryRegistry implements LibraryRegistryInterface { /** * The serializer for the library definition files. @@ -118,7 +118,7 @@ class ExternalLibraryRegistry implements ExternalLibraryRegistryInterface { * @param array $definition * The library definition array parsed from the definition JSON file. * - * @return string|\Drupal\libraries\ExternalLibrary\ExternalLibraryInterface + * @return string|\Drupal\libraries\ExternalLibrary\LibraryInterface * The library class. * * @throws \Drupal\libraries\ExternalLibrary\Exception\LibraryClassNotFoundException diff --git a/src/ExternalLibrary/Registry/ExternalLibraryRegistryInterface.php b/src/ExternalLibrary/Registry/LibraryRegistryInterface.php similarity index 69% rename from src/ExternalLibrary/Registry/ExternalLibraryRegistryInterface.php rename to src/ExternalLibrary/Registry/LibraryRegistryInterface.php index 37c1d08418e2661fa8d5c9467d40232b8ce5d41a..b64d941cdbe716dd950f9ded0bbd6076f5dfaea8 100644 --- a/src/ExternalLibrary/Registry/ExternalLibraryRegistryInterface.php +++ b/src/ExternalLibrary/Registry/LibraryRegistryInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface. + * Contains \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface. */ namespace Drupal\libraries\ExternalLibrary\Registry; @@ -11,7 +11,7 @@ namespace Drupal\libraries\ExternalLibrary\Registry; /** * Provides an interface for library registries. */ -interface ExternalLibraryRegistryInterface { +interface LibraryRegistryInterface { /** * Gets a library by its ID. @@ -19,7 +19,7 @@ interface ExternalLibraryRegistryInterface { * @param string $id * The library ID. * - * @return \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface + * @return \Drupal\libraries\ExternalLibrary\LibraryInterface * The library. * * @throws \Drupal\libraries\ExternalLibrary\Exception\LibraryClassNotFoundException diff --git a/src/ExternalLibrary/Remote/RemoteLibraryInterface.php b/src/ExternalLibrary/Remote/RemoteLibraryInterface.php index 5c643d80280428d9365f4ed4f3a3a8697149b2d8..748464726181c5454802bae4cab7f8a983660cf0 100644 --- a/src/ExternalLibrary/Remote/RemoteLibraryInterface.php +++ b/src/ExternalLibrary/Remote/RemoteLibraryInterface.php @@ -7,7 +7,7 @@ namespace Drupal\libraries\ExternalLibrary\Remote; -use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface; +use Drupal\libraries\ExternalLibrary\LibraryInterface; /** * Provides an interface for remote libraries. @@ -16,7 +16,7 @@ use Drupal\libraries\ExternalLibrary\ExternalLibraryInterface; * not checked whether or not the Drupal site has network access or the remote * resource is available. */ -interface RemoteLibraryInterface extends ExternalLibraryInterface { +interface RemoteLibraryInterface extends LibraryInterface { /** * Checks whether the library has a remote URL. diff --git a/src/ExternalLibrary/Utility/DependencyAccessorTrait.php b/src/ExternalLibrary/Utility/DependencyAccessorTrait.php index e23a99f3327afd1ecff26d49418fbb90faf06556..b063fe4e97223d06b9fac54a41f1d81a2285359c 100644 --- a/src/ExternalLibrary/Utility/DependencyAccessorTrait.php +++ b/src/ExternalLibrary/Utility/DependencyAccessorTrait.php @@ -15,14 +15,14 @@ trait DependencyAccessorTrait { /** * The dependency. * - * @var \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface + * @var \Drupal\libraries\ExternalLibrary\LibraryInterface */ protected $dependency; /** * Returns the dependency. * - * @return \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface + * @return \Drupal\libraries\ExternalLibrary\LibraryInterface * The library. */ public function getLibrary() { diff --git a/src/ExternalLibrary/Utility/LibraryAccessorTrait.php b/src/ExternalLibrary/Utility/LibraryAccessorTrait.php index c4739c3507cd90055b7d9b5ee534d0748b4ce82a..d4c144eca919d456bed36d8c9883d11f34165e80 100644 --- a/src/ExternalLibrary/Utility/LibraryAccessorTrait.php +++ b/src/ExternalLibrary/Utility/LibraryAccessorTrait.php @@ -15,14 +15,14 @@ trait LibraryAccessorTrait { /** * The library. * - * @var \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface + * @var \Drupal\libraries\ExternalLibrary\LibraryInterface */ protected $library; /** * Returns the library. * - * @return \Drupal\libraries\ExternalLibrary\ExternalLibraryInterface + * @return \Drupal\libraries\ExternalLibrary\LibraryInterface * The library. */ public function getLibrary() { diff --git a/tests/src/Kernel/ExternalLibrary/Asset/AssetLibraryTest.php b/tests/src/Kernel/ExternalLibrary/Asset/AssetLibraryTest.php index e6c863ec52ba2ca6f73d71d9f97159568c296cea..851aa3abab8ad2446cce213ed564350b601d039d 100644 --- a/tests/src/Kernel/ExternalLibrary/Asset/AssetLibraryTest.php +++ b/tests/src/Kernel/ExternalLibrary/Asset/AssetLibraryTest.php @@ -11,14 +11,14 @@ use Drupal\libraries\ExternalLibrary\Asset\AssetLibrary; use Drupal\libraries\ExternalLibrary\Exception\LibraryClassNotFoundException; use Drupal\libraries\ExternalLibrary\Exception\LibraryDefinitionNotFoundException; use Drupal\Tests\libraries\Kernel\ExternalLibrary\TestLibraryFilesStream; -use Drupal\Tests\libraries\Kernel\ExternalLibraryKernelTestBase; +use Drupal\Tests\libraries\Kernel\LibraryKernelTestBase; /** * Tests that external asset libraries are registered as core asset libraries. * * @group libraries */ -class AssetLibraryTest extends ExternalLibraryKernelTestBase { +class AssetLibraryTest extends LibraryKernelTestBase { /** * {@inheritdoc} diff --git a/tests/src/Kernel/ExternalLibrary/PhpFile/PhpFileLibraryTest.php b/tests/src/Kernel/ExternalLibrary/PhpFile/PhpFileLibraryTest.php index 77f8a1e0af723b4bc6580e17d3266d61477c59c7..7897472e462ab708e39e55e48a10984e62781302 100644 --- a/tests/src/Kernel/ExternalLibrary/PhpFile/PhpFileLibraryTest.php +++ b/tests/src/Kernel/ExternalLibrary/PhpFile/PhpFileLibraryTest.php @@ -11,14 +11,14 @@ use Drupal\libraries\ExternalLibrary\Exception\LibraryClassNotFoundException; use Drupal\libraries\ExternalLibrary\Exception\LibraryDefinitionNotFoundException; use Drupal\libraries\ExternalLibrary\PhpFile\PhpFileLibrary; use Drupal\Tests\libraries\Kernel\ExternalLibrary\TestLibraryFilesStream; -use Drupal\Tests\libraries\Kernel\ExternalLibraryKernelTestBase; +use Drupal\Tests\libraries\Kernel\LibraryKernelTestBase; /** * Tests that the external library manager properly loads PHP file libraries. * * @group libraries */ -class PhpFileLibraryTest extends ExternalLibraryKernelTestBase { +class PhpFileLibraryTest extends LibraryKernelTestBase { /** * {@inheritdoc} @@ -28,7 +28,7 @@ class PhpFileLibraryTest extends ExternalLibraryKernelTestBase { /** * The external library manager. * - * @var \Drupal\libraries\ExternalLibrary\ExternalLibraryManagerInterface + * @var \Drupal\libraries\ExternalLibrary\LibraryManagerInterface */ protected $externalLibraryManager; diff --git a/tests/src/Kernel/ExternalLibraryKernelTestBase.php b/tests/src/Kernel/LibraryKernelTestBase.php similarity index 83% rename from tests/src/Kernel/ExternalLibraryKernelTestBase.php rename to tests/src/Kernel/LibraryKernelTestBase.php index a9eca4f46fe4c330d29941b32a2aac130c92b14d..32e5f853aa1ac8cfe719b5337eea4effed4ef1ee 100644 --- a/tests/src/Kernel/ExternalLibraryKernelTestBase.php +++ b/tests/src/Kernel/LibraryKernelTestBase.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\Tests\libraries\Kernel\KernelTestBase. + * Contains \Drupal\Tests\libraries\Kernel\LibraryKernelTestBase. */ namespace Drupal\Tests\libraries\Kernel; @@ -12,12 +12,12 @@ use Drupal\KernelTests\KernelTestBase; /** * Provides an improved version of the core kernel test base class. */ -abstract class ExternalLibraryKernelTestBase extends KernelTestBase { +abstract class LibraryKernelTestBase extends KernelTestBase { /** * The external library registry. * - * @var \Drupal\libraries\ExternalLibrary\Registry\ExternalLibraryRegistryInterface + * @var \Drupal\libraries\ExternalLibrary\Registry\LibraryRegistryInterface */ protected $externalLibraryRegistry;