Skip to content
Snippets Groups Projects
Commit 944bcb1e authored by catch's avatar catch
Browse files

Issue #3053897 by alexpott, UpTil4Music, webflo: No version key/value pair in...

Issue #3053897 by alexpott, UpTil4Music, webflo: No version key/value pair in new core modules (json_api, migrate_drupal_multilingual)
parent f5c6bf01
Branches
Tags
7 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards,!16Draft: Resolve #2081585 "History storage"
......@@ -2,6 +2,7 @@ name: JSON:API
type: module
description: Exposes entities as a JSON:API-specification-compliant web API.
package: Web services
version: VERSION
configure: jsonapi.settings
dependencies:
- drupal:serialization
......@@ -2,6 +2,7 @@ name: 'Migrate Drupal Multilingual'
type: module
description: 'Provides a requirement for multilingual migrations.'
package: 'Core (Experimental)'
version: VERSION
dependencies:
- drupal:migrate_drupal
hidden: true
<?php
namespace Drupal\Tests\Core\Extension;
use Drupal\Component\Serialization\Yaml;
use Drupal\KernelTests\FileSystemModuleDiscoveryDataProviderTrait;
use Drupal\Tests\UnitTestCase;
/**
* Tests that core module info files have the expected keys.
*
* @group Extension
*/
class ModuleInfoTest extends UnitTestCase {
use FileSystemModuleDiscoveryDataProviderTrait;
/**
* Tests that core module info files have the expected keys.
*
* @dataProvider coreModuleListDataProvider
*/
public function testModuleInfo($module) {
$module_directory = __DIR__ . '/../../../../../modules/' . $module;
$info = Yaml::decode(file_get_contents($module_directory . '/' . $module . '.info.yml'));
$this->assertArrayHasKey('version', $info);
$this->assertEquals('VERSION', $info['version']);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment