You are here

public function UpdaterTest::testGetProjectTitleWithChild in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/src/Tests/Extension/UpdaterTest.php \Drupal\system\Tests\Extension\UpdaterTest::testGetProjectTitleWithChild()

Tests project and child project showing correct title.

See also

https://drupal.org/node/2409515

File

core/modules/system/src/Tests/Extension/UpdaterTest.php, line 29
Contains \Drupal\system\Tests\Extension\UpdaterTest.

Class

UpdaterTest
Tests InfoParser class and exception.

Namespace

Drupal\system\Tests\Extension

Code

public function testGetProjectTitleWithChild() {

  // Get the project title from it's directory. If it can't find the title
  // it will choose the first project title in the directory.
  $directory = \Drupal::root() . '/core/modules/system/tests/modules/module_handler_test_multiple';
  $title = Updater::getProjectTitle($directory);
  $this
    ->assertEqual('module handler test multiple', $title);
}