comparison core/modules/update/tests/src/Functional/UpdateUploadTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
188 188
189 /** 189 /**
190 * Tests only an *.info.yml file are detected without supporting files. 190 * Tests only an *.info.yml file are detected without supporting files.
191 */ 191 */
192 public function testUpdateDirectory() { 192 public function testUpdateDirectory() {
193 $type = Updater::getUpdaterFromDirectory(\Drupal::root() . '/core/modules/update/tests/modules/aaa_update_test'); 193 $type = Updater::getUpdaterFromDirectory($this->root . '/core/modules/update/tests/modules/aaa_update_test');
194 $this->assertEqual($type, 'Drupal\\Core\\Updater\\Module', 'Detected a Module'); 194 $this->assertEqual($type, 'Drupal\\Core\\Updater\\Module', 'Detected a Module');
195 195
196 $type = Updater::getUpdaterFromDirectory(\Drupal::root() . '/core/modules/update/tests/themes/update_test_basetheme'); 196 $type = Updater::getUpdaterFromDirectory($this->root . '/core/modules/update/tests/themes/update_test_basetheme');
197 $this->assertEqual($type, 'Drupal\\Core\\Updater\\Theme', 'Detected a Theme.'); 197 $this->assertEqual($type, 'Drupal\\Core\\Updater\\Theme', 'Detected a Theme.');
198 } 198 }
199 199
200 } 200 }