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

Fetch New Relic info before trying to print it. #1629

Closed

Conversation

rvtraveller
Copy link

Fixes #1626

@TeslaDethray
Copy link
Contributor

@rvtraveller This is a good change, but the tests need to be updated to mock a fetch() call.

You'll need to set the Request object to mock it like is done here:
https://github.com/pantheon-systems/terminus/blob/master/tests/unit_tests/Models/SiteTest.php#L130
Then you'll need to make it ready for the call, like here:
https://github.com/pantheon-systems/terminus/blob/master/tests/unit_tests/Models/SiteTest.php#L240-L243

I can do this for you, but that would mean your PR doesn't get merged.

@rvtraveller
Copy link
Author

Thanks @TeslaDethray! I'll work on updating the tests. Appreciate the pointers.

@TeslaDethray
Copy link
Contributor

Superseded by #1648

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