3 namespace Drupal\KernelTests\Core\Updater;
5 use Drupal\Core\Updater\Updater;
6 use Drupal\KernelTests\KernelTestBase;
9 * Tests InfoParser class and exception.
11 * Files for this test are stored in core/modules/system/tests/fixtures and end
12 * with .info.txt instead of info.yml in order not not be considered as real
17 class UpdaterTest extends KernelTestBase {
20 * Tests project and child project showing correct title.
22 * @see https://drupal.org/node/2409515
24 public function testGetProjectTitleWithChild() {
25 // Get the project title from its directory. If it can't find the title
26 // it will choose the first project title in the directory.
27 $directory = \Drupal::root() . '/core/modules/system/tests/modules/module_handler_test_multiple';
28 $title = Updater::getProjectTitle($directory);
29 $this->assertEqual('module handler test multiple', $title);