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.

CommentFileSizeAuthor
#1 bootstrap.inc-tests-1911190-1.patch1.23 KBmitron
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mitron’s picture

Proposed patch to verify that drupal_get_filename() returns NULL when file is not found.

dman’s picture

Status: Needs review » Reviewed & tested by the community

A useful thing to test. Code looks sane. Wording is correct. Running the test seems to behave as advertised.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.