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

Adrian Föder adrian at foeder.de
Mon Mar 31 12:50:01 CEST 2014


Good you found it yourself, however be aware that database built up and 
deletion! after each test is intended.

So make sure to never configure your production DB as your test DB or so 
because in Func' Tests, the DB will be destroyed rigurously.

Best,
Adrian

Am 31.03.2014 12:19, schrieb Christian Loock:
> 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