We need to use a consistent variable in tests for the chado connection in order for test traits to work well. I had started to make this change in my setters PR but then realized it would be better on it's own and make my setters PR less confusing.
So here it is.
What does this PR do?
Please describe each things this PR does. For example, a PR may 1) solve a specific bug, 2) create an auomated test to ensure it doesn't return.
Ensure that all tests connecting to chado, have a $chado_connection variable defined consistently with full type hinting.
Ensure that these tests all now correctly use the variable above instead of the original chado or connection variables each one had before.
Add the use statement for ChadoConnection to ensure the type-hinting works properly.
Removes any @file docblocks from testing files I changed since Drupal code standards says not to include them if there is only a single class in the file.
Testing
This PR only changes automated tests so a simple code review and confirming that the tests still pass should be sufficient.
Motivation
We need to use a consistent variable in tests for the chado connection in order for test traits to work well. I had started to make this change in my setters PR but then realized it would be better on it's own and make my setters PR less confusing.
So here it is.
What does this PR do?
Please describe each things this PR does. For example, a PR may 1) solve a specific bug, 2) create an auomated test to ensure it doesn't return.
chado
orconnection
variables each one had before.@file
docblocks from testing files I changed since Drupal code standards says not to include them if there is only a single class in the file.Testing
This PR only changes automated tests so a simple code review and confirming that the tests still pass should be sufficient.