
| Current Path : /var/www/html/holz-machines/web/core/tests/Drupal/KernelTests/Core/Extension/ |
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/holz-machines/web/core/tests/Drupal/KernelTests/Core/Extension/UpdateSchemaTest.php |
<?php
namespace Drupal\KernelTests\Core\Extension;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests for schema and update includes.
*
* @group Core
*/
class UpdateSchemaTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = ['update_test_schema'];
/**
* Tests the function parses schema updates as integer numbers.
*
* @see \Drupal\Core\Update\UpdateHookRegistry::getAvailableUpdates()
*/
public function testDrupalGetSchemaVersionsInt() {
\Drupal::state()->set('update_test_schema_version', 8001);
$this->installSchema('update_test_schema', ['update_test_schema_table']);
$schema = \Drupal::service('update.update_hook_registry')->getAvailableUpdates('update_test_schema');
foreach ($schema as $version) {
$this->assertIsInt($version);
}
}
}