liip / LiipFunctionalTestBundle

Some helper classes for writing functional tests in Symfony

Home Page:http://liip.ch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[3.x] WebTestCase and FixturesTrait override (?)

magnetik opened this issue · comments

After upgrading from 2.x, I'm confused by the fact that WebTestCase and FixturesTrait are sharing a lot of code, and defining a lot of properties and method.

It looks like both bundle are really really coupled and I'm quite sure that this will lead to breaking sooner or later.

I agree.

Some properties are not used and can be removed from FixturesTrait:https://github.com/liip/LiipTestFixturesBundle/blob/9bd069ffb892d47f2a00861de69a699bd49b7dbe/src/Test/FixturesTrait.php#L29

My biggest concern is getContainer() that is duplicated, we may deprecate it and recommend to inject dependencies instead: liip/LiipTestFixturesBundle#18

Should this issue be closed?

LiipFunctionalTestBundle and LiipTestFixturesBundle still define a getContainer() method. We don't have a solution yet.

It has been fixed in liip/LiipTestFixturesBundle#26

LiipTestFixturesBundle 2.x doesn't use a trait so there will be less conflicts.