Problem/Motivation

QuickEditJavascriptTestBase is test base class but not declared abstract. It's causing the following error with PHPStan

-
			message: "#^Drupal\\\\Tests\\\\BrowserTestBase\\:\\:\\$defaultTheme is required\\. See https\\://www\\.drupal\\.org/node/3083055, which includes recommendations on which theme to use\\.$#"
			count: 1
			path: modules/quickedit/tests/src/FunctionalJavascript/QuickEditJavascriptTestBase.php

Steps to reproduce

Look @ \Drupal\Tests\quickedit\FunctionalJavascript\QuickEditJavascriptTestBase, see it's not abstract.

Proposed resolution

Define as abstract

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#10 3260707-10.patch626 bytesspokje

Issue fork drupal-3260707

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:

Issue fork quickedit-3260707

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

mglaman created an issue. See original summary.

mglaman’s picture

Status: Active » Needs review

This may be irrelevant since PHPStan only runs on 10.0.x and QuickEdit is slated to be removed. But raising it anyways

#3227033: Remove Quick Edit from core

dww’s picture

Status: Needs review » Postponed

Yeah, this can be moved to the quickedit issue queue once I subtree split core's quickedit module, push that back into the contrib git repo and cut a contrib release.

Thanks,
-Derek

mglaman’s picture

Cool, thanks dww!

dww’s picture

Project: Drupal core » Quick Edit
Version: 10.0.x-dev » 1.0.0-rc1
Component: quickedit.module » Code
Priority: Normal » Major
Status: Postponed » Needs review
Parent issue: » #3260995: Split the core 9.4.x quickedit history into a new 1.0.x branch and cut a 1.0.0 release

The 1.0.x branch's tests are failing, I believe because of this issue.

https://www.drupal.org/pift-ci-job/2305738

Seems this should block 1.0.0 final. I'll take a look ASAP.

Thanks,
-Derek

dww’s picture

Issue tags: +Bug Smash Initiative

Also, since this started as a core bug report, tagging for Bug Smash. 😉

Spokje made their first commit to this issue’s fork.

spokje’s picture

StatusFileSize
new626 bytes

Status: Needs review » Needs work

The last submitted patch, 10: 3260707-10.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

mradcliffe’s picture

I think fixing the failing tests is out-of-scope for this issue and the merge request (or patch) gets the tests to run so +1 RTBC.

spokje’s picture

Priority: Major » Critical

Bumping to Priority Critical since this is blocking Critical issue #3261096: Include quickedit plugins from editor and image modules

spokje’s picture

Status: Needs work » Needs review

  • dww committed d6862ff on 1.0.x authored by Spokje
    Issue #3260707 by Spokje, mglaman, dww: QuickEditJavascriptTestBase must...
dww’s picture

Version: 1.0.0-rc1 » 1.0.x-dev
Status: Needs review » Fixed

Sorry, @mglaman -- I told d.o to make you the author of that commit, but when I pressed 'Merge', that didn't happen. Alas.

Anyway, yay!

Thanks y'all,
-Derek

mglaman’s picture

@dww no probem :) that's why issue credits exist

Status: Fixed » Closed (fixed)

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