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.
This issue is coming from: #341140: drupal_get_filename() when database is down, does not deal with phptemplate themes and #642468: BootstrapGetFilenameTestCase is out of date and #1006714: drupal_get_path doesn't work for profiles. The aim is to get some better tests for drupal_get_filename
into core, and to fix any issues that arise from those tests.
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal-1334862-drupal_get_filename_test_cleanup.patch | 3.02 KB | Steven Jones |
Comments
Comment #1
Steven Jones CreditAttribution: Steven Jones commentedI fully expect this test to fail, but just checking that these tests catch that failure.
Comment #3
dawehnerSee #2208429: Extension System, Part III: ExtensionList, ModuleExtensionList and ProfileExtensionList
Comment #8
jibranComment #13
quietone CreditAttribution: quietone as a volunteer commented@Steven Jones, thanks for the issue and the patch!
A test for drupal_get_filename, \Drupal\KernelTests\Core\Bootstrap\GetFilenameTest::testDrupalGetFilename, was added in June 2012 #1598556: Convert bootstrap.test to PSR-0 which contains the sames assertions as in the latest patch here. This can be closed as outdated.
Thanks.