Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
21 Aug 2015 at 06:00 UTC
Updated:
20 Jun 2019 at 19:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tr commentedThe patch ...
Comment #3
geertvd commentedJust 1 nitpick:
We could just concatenate that string so we don't have to use SafeMarkup::format() in a test.
Comment #4
tr commentedChanged
$this->pass(SafeMarkup::format('Test ID is @id.', array('@id' => $this->testId)));to
$this->pass('Test ID is ' . $this->testId);Comment #6
tr commentedChanged
$this->pass('Test ID is ' . $this->testId);to
$this->pass('Test ID is ' . $this->testId . '.');Comment #9
tr commentedRerolled patch against latest HEAD. No code changes, just offsets in the patch.
Comment #10
tr commentedRe-roll against current head.
Comment #11
tr commentedStill applies, still passes tests ...
Comment #13
mile23Won't apply to 8.1.x.
Comment #14
kostyashupenkoReroll of #10
Comment #15
mile23entity_create()and so forth have been deprecated, and so we want to keep theEntityType::create()methods in place.We don't need the fully qualified class name here for the exception.
MissingDependencyExceptionhas a use statement at the top of the file.Fixing the commented code! :-)
I couldn't find an issue for the @todo anywhere, so I made one: #2736777: MySQL on PHP 8 now errors when committing or rolling back when there is no active transaction
Comment #21
tr commentedThe Re-roll in #14 introduced lots of regressions - instead of being a simple re-roll to match changes in core, it REVERSED the core changes to make the patch apply.
Here is a correct re-roll of #10 so that it applies to the current HEAD. None of the concerns pointed out in #15 are applicable any more, as they were all the result of the reverted core changes in #14.
The only changes to the patch #10 are:
1) Line numbers / context lines corrected to agree with HEAD
2) Test file names corrected to agree with HEAD
Comment #22
mile23#15.3 still applies... Edit the @todo so it points to the issue.
Comment #23
tr commentedOK. I read #15.3 as a statement that you created an issue for something you noticed. I don't see where you requested modification of the @todo.
I changed the @todo to reference the newly-created issue. Seems a little out of scope though ...
Comment #24
oriol_e9gI'm not sure with the change done in #6 IMO for consistency with core we should use:
$this->pass(new FormattableMarkup('Test ID is @id.', ['@id' => $this->testId]));The performance impact is low and the print is safely by default; But the patch is fine and secure with or without the formattable markup :)
Comment #26
oriol_e9gRandom js test fail.
Comment #27
alexpottLess strings for translators to translate - nice and less t() seems a good idea.
Committed b644848 and pushed to 8.8.x. Thanks!