ModuleUpdateTest doesn't need to set `update_test.settings`

Created on 17 May 2023, about 1 year ago
Updated 19 May 2023, about 1 year ago

Problem/Motivation

In \Drupal\Tests\automatic_updates_extensions\Build\ModuleUpdateTest::createTestProject we have

// Set 'version' and 'project' for the 'alpha' and 'new_module' module to
    // enable the Update to determine the update status.
    $system_info = [
      'alpha' => ['version' => '1.0.0', 'project' => 'alpha'],
      'new_module' => ['version' => '1.0.0', 'project' => 'new_module'],
    ];
    $system_info = var_export($system_info, TRUE);
    $code = <<<END
\$config['update_test.settings']['system_info'] = $system_info;
END;
    $this->writeSettings($code);

but if you comment out the last line the test will still pass.

not sure why.

Steps to reproduce

Proposed resolution

Figure what is going on

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024