FunctionalTestBundle | Symfony bundle for functional testing | Web Framework library
kandi X-RAY | FunctionalTestBundle Summary
kandi X-RAY | FunctionalTestBundle Summary
This Bundle provides base classes and functionality for writing and running functional tests with focus on testing REST endpoint. It provides help in setting up test database and loading fixtures and mocking services in DI (even private services).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Fail comparison .
- Evaluate this instance against another instance .
- Get the configuration tree builder .
- Checks if the image matches the given image .
- Get additional failure description
- Get the matcher .
- Get failure description .
- Returns a string representation of the header .
FunctionalTestBundle Key Features
FunctionalTestBundle Examples and Code Snippets
Community Discussions
Trending Discussions on FunctionalTestBundle
QUESTION
I'm trying to use Liip test bundle to load fixtures from code using the loadFixtures() method from FixturesTrait However, I need to exclude the RESOURCE table that I don't want to be dropped in the process. If I understand correctly, this should be easy using the setExcludedDoctrineTables method according to the doc https://github.com/liip/LiipTestFixturesBundle/blob/master/doc/database.md
Unfortunately, when I run this code, the table RESOURCES gets dropped with all the others.
Can anybody see why ?
not sure if that's relevant but I'm using a mysql db in a separate docker container.
...
ANSWER
Answered 2020-Dec-21 at 17:05Answering my own question as I just found out the issue. Sometimes a good night of sleep is all you need :)
So this code is actually working. The table RESOURCES got dropped because the setUp method was redefined in the concrete class implementing the test and that redefinition included another call to loadFixtures, but for a different data class and without the exclusion :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install FunctionalTestBundle
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page