function VersionTest::testVersionAlignment
Same name in other branches
- 11.x core/modules/ckeditor5/tests/src/Unit/VersionTest.php \Drupal\Tests\ckeditor5\Unit\VersionTest::testVersionAlignment()
Ensure that CKEditor5 versions are aligned.
File
-
core/
modules/ ckeditor5/ tests/ src/ Unit/ VersionTest.php, line 18
Class
- VersionTest
- @group ckeditor5 @internal
Namespace
Drupal\Tests\ckeditor5\UnitCode
public function testVersionAlignment() : void {
$package_json = json_decode(file_get_contents(__DIR__ . '/../../../../../package.json'), TRUE);
$ckeditor_dependencies = array_filter($package_json['devDependencies'], fn($key) => str_starts_with($key, '@ckeditor/ckeditor5-'), ARRAY_FILTER_USE_KEY);
$this->assertCount(1, array_unique($ckeditor_dependencies));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.