Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Jul 2013 at 17:10 UTC
Updated:
29 Jul 2014 at 22:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhedstromHere's a start. It adds 100% coverage to
FileStorageandFileReadOnlyStorage. Some of these components are quite messy, with calls toglobal $confand other Drupal procedural functions.Comment #2
dawehnerWhat kind of code actually takes care about creating the test files? I could not figure that out to be honest.
Comment #3
jhedstromThis test currently doesn't add any files there, but that would be easy enough to do.
Comment #4
dawehnerWell, without that testing delete files is quite pointless.
Comment #5
jhedstromThis patch writes some data out prior to calling
deleteAll().Comment #6
dawehnerI miss a check that the files are deleted.
Comment #7
ParisLiakos commenteda seriously nitpicky addition to #6:
Missing backslash in front of Drupal
Comment #8
ParisLiakos commentedComment #9
jhedstromThis should address #6 and #7. Note that there was a line already checking that the *directory* was removed, this adds a check to ensure that the file is not load-able.
Comment #10
mile23Yet another use case for vfsStream :-) #2095037: Add vfsStream as a dependency in composer.json.
Also needs @group Drupal and @group PhpStorage
Other than that, RTBC.
Comment #11
jhedstromAdded groups.
Comment #12
mile23Applies, passes. Yay.
Comment #13
alexpottCommitted 25f081a and pushed to 8.x. Thanks!