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.
The issue Document that drupal_get_filename() has no return value if the file is not found promises expected behavior that is not verified by any test.
Comment | File | Size | Author |
---|---|---|---|
#1 | bootstrap.inc-tests-1911190-1.patch | 1.23 KB | mitron |
Comments
Comment #1
mitron CreditAttribution: mitron commentedProposed patch to verify that drupal_get_filename() returns NULL when file is not found.
Comment #2
dman CreditAttribution: dman commentedA useful thing to test. Code looks sane. Wording is correct. Running the test seems to behave as advertised.
Comment #3
catchCommitted/pushed to 8.x, thanks!