Two change records to check and adapt to:

Probably we just need to change getMock() calls in our code – to getMockBuilder()->create() (or whatever it is) for now, probably, since we can't use createMock() yet until we depend on Drupal 8.5. (Or we add our own createMock() for now? Maybe that would make most sense. In any case, add a @todo comment about the follow-up for when we increase the Core dependency version.)

Comments

drunken monkey created an issue. See original summary.

drunken monkey’s picture

Priority: Normal » Major
Status: Active » Postponed
Issue tags: +Drupal 8.5 dependency

Hm, actually, the best course of action might be to wait with this until we increase the Core dependency.

drunken monkey’s picture

In addition, running the tests with the new PHPUnit version currently generates 13 warnings like the following:

Trying to configure method "getProcessorsByStage" which cannot be configured because it does not exist, has not been specified, is final, or is static

Obviously, they changed something about the definition of mocked methods.

drunken monkey’s picture

Also see this change record: PHPUnit 6 is used for testing on PHP 7.0+.
(I don't see anything new there, though, but might explain the recent test fails.)

drunken monkey’s picture

Status: Postponed » Needs review
Issue tags: -Drupal 8.5 dependency
StatusFileSize
new33.15 KB

Hm, actually, we can just update this now – since it's only the test layer, it doesn't matter that much if it's not compatible with 8.4 anymore (which, after all, is EOL now and therefore not tested against anymore anyways).

  • drunken monkey committed 48dfc57 on 8.x-1.x
    Issue #2930839 by drunken monkey: Update tests according to latest...
drunken monkey’s picture

Status: Needs review » Fixed

Fixes current HEAD tests, so: committed.
If someone still wants to review, that would still be welcome, but the changes are mostly trivial.

Status: Fixed » Closed (fixed)

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