-
Notifications
You must be signed in to change notification settings - Fork 166
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
Conversation
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.
These shouldn't be tested anyway.
This helps reduce the amount of indentations
547ff00
to
10c2bf4
Compare
use PHPUnit\Framework\TestCase; | ||
|
||
class EventHostsControllerTest extends TestCase | ||
{ | ||
/** | ||
* @expectedException \Exception |
There was a problem hiding this comment.
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
There was a problem hiding this 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
@zghosts based on most of our tests, I'd suggest that we use the |
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.