Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating File entities with new File() does not populate filename and filemime #1938

Closed
quicksketch opened this issue May 27, 2016 · 1 comment

Comments

@quicksketch
Copy link
Member

I recently had a test failure caused by switching from $file = entity_create('file') to $file = new File(). These two calls should be equivalent, but it appears that the FileStorageController is doing some extra work populating the filename and filemime properties. This should be moved to the File::__construct() method so that it is called using either method.

@quicksketch
Copy link
Member Author

PR filed at backdrop/backdrop#1420.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants