<?php

declare(strict_types=1);

namespace Drupal\Tests\locale\Functional;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests installing in a different language with a dev version string.
 */
#[Group('locale')]
#[RunTestsInSeparateProcesses]
class LocaleNonInteractiveDevInstallTest extends LocaleNonInteractiveInstallTest {

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * {@inheritdoc}
   */
  protected function getVersionStringToTest(): string {
    include_once $this->root . '/core/includes/install.core.inc';
    $version = _install_get_version_info(\Drupal::VERSION);
    return $version['major'] . '.' . $version['minor'] . '.x';
  }

}
