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

Refactor snapshot baking tests #155

Merged
merged 1 commit into from
Nov 22, 2015
Merged

Conversation

HavokInspiration
Copy link
Member

While investigating the MySQL build failures, I realized that some "optimization" could be done regarding snapshot baking tests.

Some tests were split because of a feature added in a release of CakePHP 3.0.X. (composite Foreign Key).
Since we now require 3.1.0 as a minimum requirement now for the plugin, those tests can be done in one test.

Note that this solves the MySQL build issue as well.
I suspect there is something smelly with the way FixturesManager::loadSingle() method deals with constraints (used by TestCase::loadFixtures() that was used before this PR) when not using auto fixtures in tests. However, I could not reproduce the build failure Travis was reporting.

I'll try on a VM I have lying around at work on which I generally can reproduce Travis build failure. If I can reproduce the issue, I'll investigate.

Some tests were split because of a feature added in a release of CakePHP 3.0.X.
Since we require 3.1.0 as a minimum requirement now, those tests can be done in one test.
@HavokInspiration HavokInspiration added this to the 1.4.1 milestone Nov 22, 2015
@lorenzo
Copy link
Member

lorenzo commented Nov 22, 2015

Nice!

lorenzo added a commit that referenced this pull request Nov 22, 2015
@lorenzo lorenzo merged commit eca2bf1 into cakephp:master Nov 22, 2015
@HavokInspiration HavokInspiration deleted the mysql-build branch November 22, 2015 08:46
@HavokInspiration HavokInspiration modified the milestones: 1.5, 1.4.1 Dec 1, 2015
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.

None yet

2 participants