Problem/Motivation

\Drupal\automatic_updates_extensions\Form\UpdaterForm::getRecommendedModuleUpdates is hard-coded to

if ($project_info['project_type'] === 'module' || $project_info['project_type'] === 'module-disabled') {
we should be looking at themes also

Proposed resolution

change to make sure theme updates are displayed.
add a test method to \Drupal\Tests\automatic_updates_extensions\Functional\UpdaterFormTest to ensure a theme with an update will show

We will need a test theme under automatic_updates_extensions/tests/theme. It can be an empty theme
we will need a new update xml file for the theme in automatic_updates_extensions/tests/fixtures/release-history
need to call \Drupal\Tests\automatic_updates_extensions\Functional\UpdaterFormTest::setProjectInstalledVersion to set the project and version

see \Drupal\Tests\automatic_updates_extensions\Functional\UpdaterFormTest::testSuccessfulUpdate for how this is set up for our existing test module

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tedbow created an issue. See original summary.

tedbow’s picture

Issue summary: View changes
rahul_’s picture

Assigned: Unassigned » rahul_

rahul_’s picture

Status: Active » Needs review
phenaproxima’s picture

Status: Needs review » Needs work

I think these changes make a lot of sense and with a few changes I'd feel comfortable committing it.

One (annoying) change I'd like is to rename breeze_theme_test to something like just test_theme, so that we're not accidentally associating with a real-life theme in any way.

rahul_’s picture

Status: Needs work » Needs review
phenaproxima’s picture

Only one small point, to make some data provider keys clearer. Otherwise, I think this looks good and is absolutely RTBC.

phenaproxima’s picture

Title: automatic_updates_extensions only shows module updates not themes » Automatic Updates Extensions only shows module updates, not themes
Component: Code » Automatic Updates Extensions
Status: Needs review » Reviewed & tested by the community

*chef's kiss* I'm committing this when it passes tests.

  • phenaproxima committed 0b631e9 on 8.x-2.x authored by rahul_
    Issue #3300036 by rahul_, tedbow: Automatic Updates Extensions only...
phenaproxima’s picture

Status: Reviewed & tested by the community » Fixed

Great work @rahul_! Merged into 8.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.