Skip to content

Fix php unit relation test#3015

Merged
bobdenotter merged 1 commit intomasterfrom
tests/php-unit-relation-fix
Dec 14, 2021
Merged

Fix php unit relation test#3015
bobdenotter merged 1 commit intomasterfrom
tests/php-unit-relation-fix

Conversation

@I-Valchev
Copy link
Copy Markdown
Member

@I-Valchev I-Valchev commented Dec 13, 2021

Fixes #3012

But...unit tests making a DB connection 😐
Besides the code is pretty complex, which is also not in the spirit of unit tests:

https://github.com/bolt/core/blob/master/tests/php/Factory/RelationFactoryTest.php#L89-L105

I think we need to refactor this.

@bobdenotter
Copy link
Copy Markdown
Member

For now though, let's roll with this! :-)

Copy link
Copy Markdown
Collaborator

@nestordedios nestordedios left a comment

Choose a reason for hiding this comment

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

👍

@bobdenotter bobdenotter merged commit f82b90f into master Dec 14, 2021
@bobdenotter bobdenotter deleted the tests/php-unit-relation-fix branch December 14, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing test on PHP 7.2

3 participants