-
Notifications
You must be signed in to change notification settings - Fork 10
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
Issue 184 #201
base: master
Are you sure you want to change the base?
Issue 184 #201
Conversation
…th PclZip on systems that do not have ZipArchive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jamesros161 can we add some automated tests to ensure this is working as expected? To write those tests, it may help to separate the compressor logic into their own classes in the compressors folder.
Will do. I may have to revisit this whole thing since it was written before you added the System Zip functionality |
Unit tests for Boldgrid_Backup_Admin_Restore_Helper
Codecov Report
@@ Coverage Diff @@
## master #201 +/- ##
============================================
+ Coverage 20.42% 23.61% +3.19%
- Complexity 2547 2669 +122
============================================
Files 169 190 +21
Lines 12281 13001 +720
============================================
+ Hits 2508 3070 +562
- Misses 9773 9931 +158
Continue to review full report at Codecov.
|
* | ||
* @return string | ||
*/ | ||
public function is_compressor_type() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method should be get_compressor_type
or something starting with get_
. When it starts with is_
, I would expect the return to be a boolean.
This pull request is to resolve issue-184
The issues appears to be due to the set_writable_permissions() function not accounting for systems that do not use the ZipArchive package, but uses the PclZip package instead.