The SQLite Schema class is missing use Drupal\Component\Utility\Unicode.
Solution
- Add "use Drupal\Component\Utility\Unicode" to the SQLite Schema class
Testing
php ./scripts/run-tests.sh --dburl sqlite://localhost/sqlite/db.sqlite --file core/modules/system/src/Tests/Database/SchemaTest.php
There should be no fails and no exceptions.
Commit credits
Please give @sun commit credits for this issue. All the code from the patch from the first comment is originally written by @sun.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2428377-3.patch | 589 bytes | amateescu |
| #1 | 2428377-1.patch | 586 bytes | daffie |
Comments
Comment #1
daffie commentedComment #2
daffie commentedIf I run the test locally I get the following result:
Because this issue stops its parent issue, I have changed its priority to major.
Comment #3
amateescu commentedManually checked the file and PHPStorm also complains about this missing use statement. While I was there, I noticed that we can also remove one use statement that is not needed anymore.
Comment #4
dawehner.
Comment #5
daffie commentedGood catch amateescu!
Comment #6
alexpottThis issue addresses a major bug and is allowed per https://www.drupal.org/core/beta-changes. Committed 7b3189d and pushed to 8.0.x. Thanks!
Comment #9
amateescu commented