Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: 10up/wp_mock
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.0
Choose a base ref
...
head repository: 10up/wp_mock
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.1
Choose a head ref
  • 17 commits
  • 14 files changed
  • 6 contributors

Commits on Aug 16, 2023

  1. Update WP_Mock::expectHookNotAdded() with new params (#234)

    <!--
    Filling out the required portions of this template is mandatory. 
    Any PR that does not include enough information to be reviewed may be
    closed at a maintainers' discretion.
    All new code requires associated documentation and unit tests.
    -->
    
    # Summary <!-- Required -->
    
    Adds method params to `expectHookNotAdded` for priority and allowed
    arguments that are symmetrical to `expectHookAdded` - and carries them
    over the aliased functions for filter and action hooks.
    
    This way, we can set more specific expectations than assuming hooks will
    always have `10, 1` as priority/args allowed.
    
    The PR also improves the WP_Mock hook methods phpdocs and types to match
    current standards.
    
    ### Closes: #233 
    
    ## Contributor checklist <!-- Required -->
    
    <!--- Go over all the following points, and put an `x` in all the boxes
    that apply. -->
    <!--- If you are unsure about any of these, please ask for
    clarification. We are here to help! -->
    
    - [x] I agree to follow this project's [**Code of
    Conduct**](https://github.com/10up/.github/blob/trunk/CODE_OF_CONDUCT.md).
    - [x] I have updated the documentation accordingly 
    - [x] I have added tests to cover changes introduced by this pull
    request
    - [x] All new and existing tests pass
    
    ### Reviewer checklist <!-- Required -->
    
    <!-- The following checklist is for the reviewer: add any steps that may
    be relevant while reviewing this pull request -->
    
    - [x] Code changes review
    - [ ] Documentation changes review
    - [x] Unit tests pass
    - [x] Static analysis passes
    unfulvio-godaddy authored Aug 16, 2023
    Configuration menu
    Copy the full SHA
    e9e421c View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2023

  1. Configuration menu
    Copy the full SHA
    5de5ef2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61aa0d8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    410aeea View commit details
    Browse the repository at this point in the history
  4. Update composer

    unfulvio-godaddy committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    50eae93 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6aabee4 View commit details
    Browse the repository at this point in the history
  6. Fix tests in CI

    unfulvio-godaddy committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    ceca878 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e5d1418 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    283d4f4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b16f349 View commit details
    Browse the repository at this point in the history
  10. Fix setup php

    unfulvio-godaddy committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    f6f3269 View commit details
    Browse the repository at this point in the history
  11. Fix yaml bug

    unfulvio-godaddy committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    d814a6f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c52a4d3 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2024

  1. Update PHP Dependencies and run tests with PHP 8.3 (#237)

    # Summary <!-- Required -->
    
    Updates PHP dev dependencies (patch versions) and PHP in composer to
    support PHP < 9.
    
    This PR will also add a CI workflow to run tests in PHP 8.3. 
    
    ### Closes: #236 
    
    ## Contributor checklist <!-- Required -->
    
    <!--- Go over all the following points, and put an `x` in all the boxes
    that apply. -->
    <!--- If you are unsure about any of these, please ask for
    clarification. We are here to help! -->
    
    - [x] I agree to follow this project's [**Code of
    Conduct**](https://github.com/10up/.github/blob/trunk/CODE_OF_CONDUCT.md).
    - [x] I have updated the documentation accordingly 
    - [x] I have added tests to cover changes introduced by this pull
    request
    - [x] All new and existing tests pass
    
    ## Testing <!-- Required -->
    
    - [ ] Unit tests pass with PHP 8.3 and previous PHP versions
    
    <!-- List any configuration requirements for testing. -->
    
    ### Reviewer checklist <!-- Required -->
    
    <!-- The following checklist is for the reviewer: add any steps that may
    be relevant while reviewing this pull request -->
    
    - [ ] Code changes review
    - [ ] Documentation changes review
    - [ ] Unit tests pass
    - [ ] Static analysis passes
    
    
    ## After merge
    
    - [ ] Tag v1.0.1
    nmolham-godaddy authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    4249c87 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2024

  1. Update docs to explain how WP_Mock TestCase is preferable to extend t…

    …han PhpUnit's (#239)
    
    <!--
    Filling out the required portions of this template is mandatory. 
    Any PR that does not include enough information to be reviewed may be
    closed at a maintainers' discretion.
    All new code requires associated documentation and unit tests.
    -->
    
    # Summary <!-- Required -->
    
    Updates docs to make it clear that implementations should use WP_Mock
    own `TestCase`, ideally, or at least provide teardown overrides.
    
    ### Closes: #238 
    
    ## Contributor checklist <!-- Required -->
    
    <!--- Go over all the following points, and put an `x` in all the boxes
    that apply. -->
    <!--- If you are unsure about any of these, please ask for
    clarification. We are here to help! -->
    
    - [x] I agree to follow this project's [**Code of
    Conduct**](https://github.com/10up/.github/blob/trunk/CODE_OF_CONDUCT.md).
    - [x] I have updated the documentation accordingly 
    - [x] I have added tests to cover changes introduced by this pull
    request
    - [x] All new and existing tests pass
    ### Reviewer checklist <!-- Required -->
    
    <!-- The following checklist is for the reviewer: add any steps that may
    be relevant while reviewing this pull request -->
    
    - [ ] Code changes review
    - [ ] Documentation changes review
    - [ ] Doc examples should always reference WP_Mock own `TestCase`
    - [ ] Unit tests pass
    - [ ] Static analysis passes
    
    ---------
    
    Co-authored-by: Ryan Neudorf <[email protected]>
    Co-authored-by: Ryan Neudorf <[email protected]>
    Co-authored-by: Drew Jaynes <[email protected]>
    4 people authored Jan 12, 2024
    Configuration menu
    Copy the full SHA
    1bcc9a4 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. Configuration menu
    Copy the full SHA
    dbd6762 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Remove version from composer and update changelog.md (#242)

    # Summary <!-- Required -->
    
    Removes package version from composer.json. This should make packagist
    point to the git tags. Also updated the changelog.md to include changes
    from 1.0.1.
    
    ### Closes: #241 
    
    ## Contributor checklist <!-- Required -->
    
    <!--- Go over all the following points, and put an `x` in all the boxes
    that apply. -->
    <!--- If you are unsure about any of these, please ask for
    clarification. We are here to help! -->
    
    - [x] I agree to follow this project's [**Code of
    Conduct**](https://github.com/10up/.github/blob/trunk/CODE_OF_CONDUCT.md).
    - [x] I have updated the documentation accordingly 
    - [x] I have added tests to cover changes introduced by this pull
    request
    - [x] All new and existing tests pass
    
    ## Testing <!-- Required -->
    
    - [x] All tests pass in CI 
    
    ### Reviewer checklist <!-- Required -->
    
    <!-- The following checklist is for the reviewer: add any steps that may
    be relevant while reviewing this pull request -->
    
    - [x] Code changes review
    - [x] Documentation changes review
    - [x] Unit tests pass
    - [x] Static analysis passes
    unfulvio-godaddy authored Jan 22, 2024
    Configuration menu
    Copy the full SHA
    48b7f22 View commit details
    Browse the repository at this point in the history
Loading