
| Current Path : /var/www/html/strat/web/core/tests/Drupal/KernelTests/Core/Updater/ |
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/strat/web/core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php |
<?php
declare(strict_types=1);
namespace Drupal\KernelTests\Core\Updater;
use Drupal\Core\Updater\Updater;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests InfoParser class and exception.
*
* Files for this test are stored in core/modules/system/tests/fixtures and end
* with .info.txt instead of info.yml in order not to be considered as real
* extensions.
*
* @group Extension
*/
class UpdaterTest extends KernelTestBase {
/**
* Tests project and child project showing correct title.
*
* @see https://drupal.org/node/2409515
*/
public function testGetProjectTitleWithChild(): void {
// Get the project title from its directory. If it can't find the title
// it will choose the first project title in the directory.
$directory = $this->root . '/core/modules/system/tests/modules/module_handler_test_multiple';
$title = Updater::getProjectTitle($directory);
$this->assertEquals('module handler test multiple', $title);
}
}