Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you have a look at RouteProvider::getRouteByNames() you can spot for example that $this->table is now $this->tableName.
Other issues: array_intersect_key uses the wrong parameter, RouteNotFoundException wasn't used etc.
I ran into that while writing tests, so tagging.
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff.txt | 2.18 KB | dawehner |
#3 | drupal-1906358-3.patch | 6.21 KB | dawehner |
#1 | drupal-1906358-1.patch | 5.73 KB | dawehner |
Comments
Comment #1
dawehnerAdd tag and tests and fixes :)
Comment #2
Crell CreditAttribution: Crell commentedMissing ending ).
This is strictly speaking not safe, as there is a non-zero (if remote) chance that randomName() will return "route_a".
I don't think it will ever happen but it's not make testbot any more non-deterministic than it already is. :-)
And Crell-- for letting such blatant bugs through in the first place. :-( Thanks for the catch, Daniel!
Comment #3
dawehnerThanks for the review!
I think having a proper name also helps to understand what is going on a bit better.
Btw. it's incredible awesome to write tests which are executed instantaneous!
This remembers me the old days of fully unit testing code in the university.
Comment #4
Crell CreditAttribution: Crell commentedYay bug fixes.
Comment #5
catchEek, nice find. Committed/pushed to 8.x.