Loading core/phpcs.xml.dist +1 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,7 @@ <exclude name="Drupal.Commenting.DocComment.LongFullStop"/> </rule> <rule ref="Drupal.Commenting.DocComment.MissingShort"> <include-pattern>core/*/KernelTests/*</include-pattern> <include-pattern>core/*/Unit/*</include-pattern> <include-pattern>core/*/FunctionalJavascript/*</include-pattern> </rule> Loading core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,8 @@ public function testFormattableMarkupUri($string, $uri, $options, $expected): vo } /** * Provides data for testFormattableMarkupUri(). * * @return array * Data provider for testFormattableMarkupUri(). */ Loading Loading @@ -116,6 +118,8 @@ public function testFormattableMarkupUriWithExceptionUri($string, $uri): void { } /** * Provides data for testFormattableMarkupUriWithExceptionUri(). * * @return array * Data provider for testFormattableMarkupUriWithExceptionUri(). */ Loading core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php +24 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ class ConfigActionTest extends KernelTestBase { protected static $modules = ['config_test']; /** * Tests the behavior of the entity_create config action. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityCreate */ public function testEntityCreate(): void { Loading @@ -55,6 +57,8 @@ public function testEntityCreate(): void { } /** * Tests the behavior of the entity_method config action. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod */ public function testEntityMethod(): void { Loading Loading @@ -167,6 +171,8 @@ public function testEntityMethod(): void { } /** * Tests pluralized method config actions on configuration entities. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod */ public function testPluralizedEntityMethod(): void { Loading Loading @@ -208,6 +214,8 @@ public function testPluralizedEntityMethod(): void { } /** * Tests exception thrown when applying an action to multiple calls. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod */ public function testPluralizedEntityMethodException(): void { Loading @@ -220,6 +228,8 @@ public function testPluralizedEntityMethodException(): void { } /** * Tests exception thrown for duplicate pluralized method action definitions. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver\EntityMethodDeriver */ public function testDuplicatePluralizedMethodNameException(): void { Loading @@ -234,6 +244,8 @@ public function testDuplicatePluralizedMethodNameException(): void { } /** * Tests exception when creating a duplicate derivative. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver\EntityMethodDeriver */ public function testDuplicatePluralizedOtherMethodNameException(): void { Loading @@ -248,6 +260,8 @@ public function testDuplicatePluralizedOtherMethodNameException(): void { } /** * Tests exception thrown when entity method action has an invalid argument. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod */ public function testEntityMethodException(): void { Loading @@ -260,6 +274,8 @@ public function testEntityMethodException(): void { } /** * Tests the simple config update action and related exceptions. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\SimpleConfigUpdate */ public function testSimpleConfigUpdate(): void { Loading Loading @@ -291,6 +307,8 @@ public function testSimpleConfigUpdate(): void { } /** * Tests shorthand action IDs for a configuration entity. * * @see \Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType() */ public function testShorthandActionIds(): void { Loading @@ -316,6 +334,8 @@ public function testShorthandActionIds(): void { } /** * Tests that duplicate shorthand action IDs throw an exception. * * @see \Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType() */ public function testDuplicateShorthandActionIds(): void { Loading @@ -328,6 +348,8 @@ public function testDuplicateShorthandActionIds(): void { } /** * Tests that parent attributes are properly discovered. * * @see \Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType() */ public function testParentAttributes(): void { Loading @@ -338,6 +360,8 @@ public function testParentAttributes(): void { } /** * Tests that an exception is thrown when an action does not exist. * * @see \Drupal\Core\Config\Action\ConfigActionManager */ public function testMissingAction(): void { Loading core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php +4 −0 Original line number Diff line number Diff line Loading @@ -21,11 +21,15 @@ abstract class ConfigStorageTestBase extends KernelTestBase { /** * The configuration storage. * * @var \Drupal\Core\Config\StorageInterface */ protected $storage; /** * An invalid configuration storage. * * @var \Drupal\Core\Config\StorageInterface */ protected $invalidStorage; Loading core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ class EntityDuplicateTest extends EntityKernelTestBase { /** * The entity storage. * * @var \Drupal\Core\Entity\ContentEntityStorageInterface */ protected $entityTestRevStorage; Loading Loading
core/phpcs.xml.dist +1 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,7 @@ <exclude name="Drupal.Commenting.DocComment.LongFullStop"/> </rule> <rule ref="Drupal.Commenting.DocComment.MissingShort"> <include-pattern>core/*/KernelTests/*</include-pattern> <include-pattern>core/*/Unit/*</include-pattern> <include-pattern>core/*/FunctionalJavascript/*</include-pattern> </rule> Loading
core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,8 @@ public function testFormattableMarkupUri($string, $uri, $options, $expected): vo } /** * Provides data for testFormattableMarkupUri(). * * @return array * Data provider for testFormattableMarkupUri(). */ Loading Loading @@ -116,6 +118,8 @@ public function testFormattableMarkupUriWithExceptionUri($string, $uri): void { } /** * Provides data for testFormattableMarkupUriWithExceptionUri(). * * @return array * Data provider for testFormattableMarkupUriWithExceptionUri(). */ Loading
core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php +24 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ class ConfigActionTest extends KernelTestBase { protected static $modules = ['config_test']; /** * Tests the behavior of the entity_create config action. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityCreate */ public function testEntityCreate(): void { Loading @@ -55,6 +57,8 @@ public function testEntityCreate(): void { } /** * Tests the behavior of the entity_method config action. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod */ public function testEntityMethod(): void { Loading Loading @@ -167,6 +171,8 @@ public function testEntityMethod(): void { } /** * Tests pluralized method config actions on configuration entities. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod */ public function testPluralizedEntityMethod(): void { Loading Loading @@ -208,6 +214,8 @@ public function testPluralizedEntityMethod(): void { } /** * Tests exception thrown when applying an action to multiple calls. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod */ public function testPluralizedEntityMethodException(): void { Loading @@ -220,6 +228,8 @@ public function testPluralizedEntityMethodException(): void { } /** * Tests exception thrown for duplicate pluralized method action definitions. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver\EntityMethodDeriver */ public function testDuplicatePluralizedMethodNameException(): void { Loading @@ -234,6 +244,8 @@ public function testDuplicatePluralizedMethodNameException(): void { } /** * Tests exception when creating a duplicate derivative. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver\EntityMethodDeriver */ public function testDuplicatePluralizedOtherMethodNameException(): void { Loading @@ -248,6 +260,8 @@ public function testDuplicatePluralizedOtherMethodNameException(): void { } /** * Tests exception thrown when entity method action has an invalid argument. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod */ public function testEntityMethodException(): void { Loading @@ -260,6 +274,8 @@ public function testEntityMethodException(): void { } /** * Tests the simple config update action and related exceptions. * * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\SimpleConfigUpdate */ public function testSimpleConfigUpdate(): void { Loading Loading @@ -291,6 +307,8 @@ public function testSimpleConfigUpdate(): void { } /** * Tests shorthand action IDs for a configuration entity. * * @see \Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType() */ public function testShorthandActionIds(): void { Loading @@ -316,6 +334,8 @@ public function testShorthandActionIds(): void { } /** * Tests that duplicate shorthand action IDs throw an exception. * * @see \Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType() */ public function testDuplicateShorthandActionIds(): void { Loading @@ -328,6 +348,8 @@ public function testDuplicateShorthandActionIds(): void { } /** * Tests that parent attributes are properly discovered. * * @see \Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType() */ public function testParentAttributes(): void { Loading @@ -338,6 +360,8 @@ public function testParentAttributes(): void { } /** * Tests that an exception is thrown when an action does not exist. * * @see \Drupal\Core\Config\Action\ConfigActionManager */ public function testMissingAction(): void { Loading
core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php +4 −0 Original line number Diff line number Diff line Loading @@ -21,11 +21,15 @@ abstract class ConfigStorageTestBase extends KernelTestBase { /** * The configuration storage. * * @var \Drupal\Core\Config\StorageInterface */ protected $storage; /** * An invalid configuration storage. * * @var \Drupal\Core\Config\StorageInterface */ protected $invalidStorage; Loading
core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ class EntityDuplicateTest extends EntityKernelTestBase { /** * The entity storage. * * @var \Drupal\Core\Entity\ContentEntityStorageInterface */ protected $entityTestRevStorage; Loading