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

Api3TestTrait - Only run api4 tests if api4 is present #15331

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

totten
Copy link
Member

@totten totten commented Sep 19, 2019

Overview

This is meant to temporarily hush issues in api_v3_AllTests when running a mid-alpha codebase.

Before

  • For dual-version tests within api_v3_AllTests, the tests always run on v3 and v4.

After

  • For dual-version tests within api_v3_AllTests, the active tests depend on what code is present. It runs v4 mode if v4 is present.

Technical Details

This is meant to help bridge the interim while updating test systems and working on #15309.

The test is framed in a way that should work in a minimal level of bootstrap (e.g. after classloader and civicrm.settings.php - but before API is brought online).

@civibot civibot bot added the master label Sep 19, 2019
@civibot
Copy link

civibot bot commented Sep 19, 2019

(Standard links)

Copy link
Member

@colemanw colemanw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So file_exists works on directories?
Update. Looks that way from the doc. Adding MOP.

@seamuslee001 seamuslee001 merged commit 49caa01 into civicrm:master Sep 19, 2019
@totten totten deleted the master-api4-hush branch September 20, 2019 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants