function UpdateUploadTest::testUpdateDirectory
Same name in other branches
- 9 core/modules/update/tests/src/Functional/UpdateUploadTest.php \Drupal\Tests\update\Functional\UpdateUploadTest::testUpdateDirectory()
- 8.9.x core/modules/update/tests/src/Functional/UpdateUploadTest.php \Drupal\Tests\update\Functional\UpdateUploadTest::testUpdateDirectory()
- 10 core/modules/update/tests/src/Functional/UpdateUploadTest.php \Drupal\Tests\update\Functional\UpdateUploadTest::testUpdateDirectory()
Tests only an *.info.yml file are detected without supporting files.
File
-
core/
modules/ update/ tests/ src/ Functional/ UpdateUploadTest.php, line 203
Class
- UpdateUploadTest
- Tests the Update Manager module's upload and extraction functionality.
Namespace
Drupal\Tests\update\FunctionalCode
public function testUpdateDirectory() : void {
$type = Updater::getUpdaterFromDirectory($this->root . '/core/modules/update/tests/modules/aaa_update_test');
$this->assertEquals('Drupal\\Core\\Updater\\Module', $type, 'Detected a Module');
$type = Updater::getUpdaterFromDirectory($this->root . '/core/modules/update/tests/themes/update_test_basetheme');
$this->assertEquals('Drupal\\Core\\Updater\\Theme', $type, 'Detected a Theme.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.