[meta] Support PHPUnit 10 in Drupal 9
Problem/MotivationPHPUnit 10 was originally planned for February 2021, but has been delayed. We are hoping to ship Drupal 10 with support for PHPUnit 10 and so we can start preparing for this now, even...
View ArticleReplace usages of assertRegExp(), that is deprecated
Problem/MotivationassertRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertMatchesRegularExpression() instead.Steps to reproduceProposed resolutionRemaining...
View ArticleReplace usages of assertNotRegExp(), that is deprecated
Problem/MotivationassertNotRegExp() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertDoesNotMatchRegularExpression() instead.Steps to reproduceProposed...
View ArticleReplace usages of assertDirectoryNotIsWritable(), that is deprecated
Problem/MotivationassertDirectoryNotIsWritable() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertDirectoryIsNotWritable() instead.Steps to reproduceProposed...
View ArticleReplace usages of assertFileNotIsWritable(), that is deprecated
Problem/MotivationassertFileNotIsWritable() is deprecated and will be removed in PHPUnit 10. Refactor your code to use assertFileIsNotWritable() instead.Steps to reproduceProposed resolutionRemaining...
View ArticleReplace usages of expectException(Warning::class), that is deprecated
Problem/MotivationSupport for using expectException() with PHPUnit\\Framework\\Error\\Warning is deprecated and will be removed in PHPUnit 10. Use expectWarning() instead.Steps to reproduceProposed...
View ArticleReplace usages of expectException(Error::class), that is deprecated
Problem/MotivationSupport for using expectException() with PHPUnit\\Framework\\Error\\Error is deprecated and will be removed in PHPUnit 10. Use expectError() instead.Steps to reproduceProposed...
View ArticleReplace usages of the at() matcher, that is deprecated
Problem/MotivationThe at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked.Steps to reproduceProposed...
View ArticleEasy Out of the Box - June 7 Meeting in Slack
0 - Introductions1.0 - Roadmap is located here: https://www.drupal.org/project/ideas/issues/3191533.2.0 - Where can contributors help this week. There will be threads for the individual components.2.1...
View Article"Notice: Undefined index: defaults" when visiting default...
Problem/MotivationVisiting the default (formerly master) display for the media_library view's configuration page results in a dblog/watchdog php notice. Well, two actually: Notice: Undefined index:...
View ArticleConvert select query extenders to backend-overrideable services
Problem/MotivationWhile working on #3217531: Deprecate Connection::getDriverClass mechanism, make its callers abstract, and use standard autoloading, we came across the fact that...
View ArticleAdd Views EntityReference filter to be available for all entity reference fields
Problem/MotivationOne major piece of functionality from the D7 Entity Reference module was left out entirely in #1801304: Add Entity reference field: the ability to render exposed views filters as a...
View ArticleAdd a 'key-value system' component to the core project node so that...
Currently, all issues related to the Key-Value subsystem are lumped together in the "base system" component, where they stand little chance of being discovered.It would be good to add that component to...
View ArticleIncorrect calls to Connection::select() in MenuTreeStorage
Problem/MotivationThere are several calls like$this->connection->select($this->table, $this->options) in Drupal\Core\Menu\MenuTreeStorage. Options should be the third argument, the second...
View ArticleFields under operations are broken
Testing Steps:# Goto: admin/structure/contact # Check Manager field and edit buttonsExpected Results: # Edit button should not be overlapped on Manage field buttonActual Results: # Edit button is...
View ArticleAllow text field to enforce a specific text format
Problem/MotivationCurrently text fields can either be restricted to plain text, or the user may select between all accessible text formats independently of the context. This means that a privileged...
View ArticleUse PHPUnit-bridge polyfills for forward compatibility layer
Problem/MotivationSymfony's PHPUnit-bridge provides a couple of traits to polyfill lower-version-upwards methods that PHPUnit introduces in its latest versions,...
View ArticleRemove usages of \PHPUnit\Framework\TestListener that is deprecated
Problem/MotivationPHPUnit8 deprecated \PHPUnit\Framework\TestListener and \PHPUnit\Framework\TestListenerDefaultImplementation in favor of the `TestHook` interfaces instead.#3116856: Workaround PHPUnit...
View Article