MarcusBarnes / mik

The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
GNU General Public License v3.0
34 stars 11 forks source link

Not require SYSTEM #416

Closed whikloj closed 7 years ago

whikloj commented 7 years ago

Github issue: #412

What does this Pull Request do?

Removes the requirement of a SYSTEM section of the config.ini

What's new?

mik required you to have the SYSTEM section just in case your timezone was not set. But conceivably never checked it, it also parsed the settings file twice.

This uses the existing array of settings and only checks for SYSTEM if we need it.

How should this be tested?

I'm going to suggest that if tests run before and after this PR with the same count you should be fine. However my PHPUnit is not letting me run existing tests under PHP 7

But you could try running mik without a SYSTEM section in your config.ini and you should (depending on your PHP installation) get the PHP timezone or 'America/Vancouver' 😄

To help reviewers test your work:

Additional Notes

Any additional information that you think would be helpful when reviewing this PR.

Example:

Interested parties

whikloj commented 7 years ago

Schema resolving error in PHP 5.6 on Travis, if someone can restart that test I think it will pass.

MarcusBarnes commented 7 years ago

Thanks @whikloj. I've restarted the Travis build.