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

[WIP] dev/core#980 [test-dbunit] remove use of discontinued phpunit/dbunit #14268

Closed
wants to merge 6 commits into from

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 19, 2019

Overview

Remove obsolete phphunit/dbunit package from our test suite

sebastianbergmann/dbunit#217

Removing our dependency on this removes a hurdle in supporting more recent phpunit versions since we need to migrate over our own classes to extend the namespaced classes, but currently they extend a dbunit class so getting rid of that is a first useful step.

Before

phpunit/dbunit used in tests

After

phpunit/dbunit not used in tests

Technical Details

I came into this as the path to updating our phpunit version expectations requires us to start changing how we call phpunit & the path for this is much less clear ... and then it stops

The phpunit/dbunit package has been discontinued. I've removed the reference to it from the top level
extends and one call to it & the test I tried locally passes so it's not needed for ALL tests.

Let's see where it IS needed & what our options are - have at it jenkins

Comments

@civibot
Copy link

civibot bot commented May 19, 2019

(Standard links)

@civibot civibot bot added the master label May 19, 2019
@seamuslee001
Copy link
Contributor

@eileenmcnaughton

Fatal error: Call to undefined method api_v3_ActivityCaseTest::createDefaultDBConnection() in /home/jenkins/bknix-dfl/build/core-14268-1unqn/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviUnitTestCase.php on line 249

@eileenmcnaughton eileenmcnaughton force-pushed the test_dbunit branch 2 times, most recently from 4ceeb61 to 45fa100 Compare May 20, 2019 01:22
@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 OK - I got past that bit - lessee

@seamuslee001
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton force-pushed the test_dbunit branch 4 times, most recently from 46c4e6e to c771a45 Compare May 20, 2019 20:27
@eileenmcnaughton eileenmcnaughton force-pushed the test_dbunit branch 3 times, most recently from c216e73 to b6d0ebe Compare May 21, 2019 07:02
@eileenmcnaughton eileenmcnaughton changed the title [WIP] remove use of discontinued phpunit/dbunit [WIP] [test-dbunit] remove use of discontinued phpunit/dbunit May 21, 2019
@eileenmcnaughton eileenmcnaughton changed the title [WIP] [test-dbunit] remove use of discontinued phpunit/dbunit [WIP] dev/core#980 [test-dbunit] remove use of discontinued phpunit/dbunit May 21, 2019
eileen added 6 commits May 22, 2019 07:34
The phpunit/dbunit package has been discontinued. I've removed the reference to it from the top level
extends and one call to it & the test I tried locally passes so it's not needed for ALL tests.

Let's see where it IS needed & what our options are - have at it jenkins
@eileenmcnaughton
Copy link
Contributor Author

closing for now - sub-prs still progressing

@eileenmcnaughton eileenmcnaughton deleted the test_dbunit branch May 24, 2019 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants