summaryrefslogtreecommitdiffstatshomepage
path: root/core/tests/Drupal/Tests/ComposerIntegrationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests/Drupal/Tests/ComposerIntegrationTest.php')
-rw-r--r--core/tests/Drupal/Tests/ComposerIntegrationTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tests/Drupal/Tests/ComposerIntegrationTest.php b/core/tests/Drupal/Tests/ComposerIntegrationTest.php
index 3ea8d0ba8e6..f2dfe4bf73c 100644
--- a/core/tests/Drupal/Tests/ComposerIntegrationTest.php
+++ b/core/tests/Drupal/Tests/ComposerIntegrationTest.php
@@ -25,7 +25,7 @@ class ComposerIntegrationTest extends UnitTestCase {
*
* @see https://www.drupal.org/about/core/policies/core-dependencies-policies/managing-composer-updates-for-drupal-core
*/
- public function testComposerLockHash() {
+ public function testComposerLockHash(): void {
$content_hash = self::getContentHash(file_get_contents($this->root . '/composer.json'));
$lock = json_decode(file_get_contents($this->root . '/composer.lock'), TRUE);
$this->assertSame($content_hash, $lock['content-hash']);
@@ -185,7 +185,7 @@ class ComposerIntegrationTest extends UnitTestCase {
*
* @dataProvider providerTestExpectedScaffoldFiles
*/
- public function testExpectedScaffoldFiles($destRelPath, $sourceRelPath, $expectedDestination = '[web-root]') {
+ public function testExpectedScaffoldFiles($destRelPath, $sourceRelPath, $expectedDestination = '[web-root]'): void {
// Grab the 'file-mapping' section of the core composer.json file.
$json = json_decode(file_get_contents($this->root . '/core/composer.json'));
$scaffold_file_mapping = (array) $json->extra->{'drupal-scaffold'}->{'file-mapping'};