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

Upgrade testing suite #654

Merged
merged 48 commits into from May 12, 2019
Merged

Upgrade testing suite #654

merged 48 commits into from May 12, 2019

Conversation

ericpoe
Copy link
Contributor

@ericpoe ericpoe commented May 2, 2019

This updates a few libraries that we use for testing in the CI. This also updates testing documentation since we are not using phing in the VM.

This takes care of #617

I would prefer to fix the style-ci "errors" via php_codesniffer rules in a separate PR since that will involve adding new rules to our phpcs.xml.dist config file.

This throws a scary warning while testing, so use the right
`$this-expectException...` methods!
This is to match our other tests
This tests internal attribue names using a deprecated method. It's not
really testing anything anyway.
@ericpoe ericpoe marked this pull request as ready for review May 3, 2019 19:05
use PHPUnit\Framework\TestCase;

class EventHostsControllerTest extends TestCase
{
/**
* @expectedException \Exception
Copy link
Contributor Author

Choose a reason for hiding this comment

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

annotation-level exception assertions are deprecated in PHPUnit 8. sebastianbergmann/phpunit#3332

Copy link
Member

@zghosts zghosts left a comment

Choose a reason for hiding this comment

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

Discussion for later:
do we use the test prefix or the @test annotation

@ericpoe
Copy link
Contributor Author

ericpoe commented May 3, 2019

@zghosts based on most of our tests, I'd suggest that we use the test prefix rather than the @test annotation.

@svpernova09 svpernova09 self-requested a review May 11, 2019 15:16
@ericpoe ericpoe merged commit c1481dd into joindin:master May 12, 2019
@ericpoe ericpoe deleted the upgradeTestingSuite branch May 12, 2019 04:55
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.

None yet

3 participants