Skip to content

Skip adding dependency if already added#607

Open
adamwillcock wants to merge 7 commits intodoctrine:2.2.xfrom
adamwillcock:skip-dependency
Open

Skip adding dependency if already added#607
adamwillcock wants to merge 7 commits intodoctrine:2.2.xfrom
adamwillcock:skip-dependency

Conversation

@adamwillcock
Copy link

Skip adding dependency if already added, avoids issues instantiating fixtures which may have dependencies.

@greg0ire
Copy link
Member

Please add tests. Also,
please improve your commit message according to the contributing guide.

Added tests to ensure that fixture dependencies are not instantiated if they have already been added to the Loader.
This fixes a bug where a fixture dependency with constructor arguments
would throw an exception when being added
Added tests to ensure that fixture dependencies are not instantiated if they have already been added to the Loader.
Updated tests to fix linting issues with return types and spacing
@greg0ire
Copy link
Member

It seems there are CI jobs failing. Please take a look at this guide for more on how to handle those.

Updated tests to fix linting issues with annotations.
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.

2 participants

Comments