[Flow] Functional Test deletes Database and produces error this way

Christian Loock brainshack at gmail.com
Mon Mar 31 12:19:43 CEST 2014


Ok, I found the problem myself:

I overwrote the setUp method without calling parent::setUp(); :(

Silly me.


2014-03-31 12:13 GMT+02:00 Christian Loock <brainshack at gmail.com>:

> Hello everybody,
>
> I wrote a functional Test, that I want to use to test persistence.
>
> However, it seems like the database is being deleted, everytime I call the
> Test.
>
> When I create the database manually it works for the first time I run the
> test. After this, the DB gets deleted but not recreated. I also checked my
> Database migrations, which all work fine.
>
> I also set testablePersistenceEnabled to TRUE in my Test.
>
> I run the Test like this:
>
> phpunit -c Build/BuildEssentials/PhpUnit/FunctionalTests.xml --filter
> MyUnitTest --colors --verbose
>
> Any ideas whats wrong here?
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>


More information about the Flow mailing list