function UpdaterTest::testGetProjectTitleWithChild
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php \Drupal\KernelTests\Core\Updater\UpdaterTest::testGetProjectTitleWithChild()
- 10 core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php \Drupal\KernelTests\Core\Updater\UpdaterTest::testGetProjectTitleWithChild()
- 11.x core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php \Drupal\KernelTests\Core\Updater\UpdaterTest::testGetProjectTitleWithChild()
Tests project and child project showing correct title.
See also
https://drupal.org/node/2409515
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Updater/ UpdaterTest.php, line 24
Class
- UpdaterTest
- Tests InfoParser class and exception.
Namespace
Drupal\KernelTests\Core\UpdaterCode
public function testGetProjectTitleWithChild() {
// 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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.