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

fix/add tests for validation and ISO 8601 #104

Merged
merged 1 commit into from
Aug 9, 2023
Merged

fix/add tests for validation and ISO 8601 #104

merged 1 commit into from
Aug 9, 2023

Conversation

seth-shaw-asu
Copy link
Member

GitHub Issue: #103

What does this Pull Request do?

Addresses issue with date intervals throwing a warning when passed to EDTF:Utils::iso8601Value. Also updates and adds more tests.

  • Does this change require documentation to be updated? No.
  • Does this change add any new dependencies? No.
  • Does this change require any other modifications to be made to the repository
    (i.e. Regeneration activity, etc.)? No.
  • Could this change impact execution of existing code? No.

How should this be tested?

Short version: tests pass. 👍

Longer version:

  • Spin up a site with controlled_access_terms.
  • using the command-line: drush ev 'print(\Drupal\controlled_access_terms\EDTFUtils::iso8601Value("2023-07/2023-08")."\n");'
  • Observe the warning.
  • Apply PR
  • Run the command again and no warning appears.

Additional Notes

An early version of this was accidentally pushed directly to the repo which I then reverted. This PR is the real version.

Interested parties

@Islandora/committers

@alxp
Copy link
Contributor

alxp commented Aug 9, 2023

Tested the drush command and phpunit on Drupal 10, works as advertised.

@alxp alxp merged commit e7779e4 into Islandora:2.x Aug 9, 2023
9 checks passed
@seth-shaw-asu seth-shaw-asu deleted the issue-103 branch August 10, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants