
| Current Path : /var/www/html/rocksensor2/web/core/modules/ckeditor5/tests/src/Unit/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor2/web/core/modules/ckeditor5/tests/src/Unit/VersionTest.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\ckeditor5\Unit;
use Drupal\Tests\UnitTestCase;
/**
* @group ckeditor5
* @internal
*/
class VersionTest extends UnitTestCase {
/**
* Ensure that CKEditor5 versions are aligned.
*/
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));
}
}