[wp-trac] [WordPress Trac] #29544: WP_Filesystem_MockFS permissions support
WordPress Trac
noreply at wordpress.org
Fri Sep 5 18:52:32 UTC 2014
#29544: WP_Filesystem_MockFS permissions support
-------------------------+-----------------------------
Reporter: mnelson4 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
At Event Espresso, we are starting to use WP_Filesystem_MockFS to unit
test some of our filesystem-related code. One of the things our code was
checking for was the permissions on a file, but currently that isn't
supported by WP_Filesystem_MocksFS. Actually, when
WP_Filesystem_MocksFS::gethchmod() (please note the "h" between "get" and
"chmod") is called, a method-not-declare fatal error is thrown, because
WP_Filesystem_Basegethchmod() calls the undefined method getchmod() (note
the absense of the "h" between "get" and "chmod"), which all the other
children of WP_Filesystem_Base declare, except WP_Filesystem_MocksFS.
I have a patch for this I will try to submit
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29544>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list