class UpdaterTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php \Drupal\KernelTests\Core\Updater\UpdaterTest
- 10 core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php \Drupal\KernelTests\Core\Updater\UpdaterTest
- 8.9.x core/tests/Drupal/KernelTests/Core/Updater/UpdaterTest.php \Drupal\KernelTests\Core\Updater\UpdaterTest
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
Hierarchy
- class \Drupal\KernelTests\KernelTestBase implements \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\KernelTests\Core\Updater\UpdaterTest extends \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of UpdaterTest
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Updater/ UpdaterTest.php, line 17
Namespace
Drupal\KernelTests\Core\UpdaterView source
class UpdaterTest extends KernelTestBase {
/**
* Tests project and child project showing correct title.
*
* @see https://drupal.org/node/2409515
*/
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.