[owncloud-devel] Installing App when running unit tests

Tobia De Koninck tobia at ledfan.be
Sat Apr 18 13:44:38 GMT 2015


Hey! Thanks for the answer.

Problem is \OCP\App doesn't have an enable/install method 
(https://github.com/owncloud/core/blob/master/lib/public/app.php) and 
AppManager only enables the app, it doesn't install it. (i.e. creating 
database tables)

Op 18-04-15 om 15:34 schreef Bernhard Posselt:
> OC_Hook and OC_App both have public interface counterparts, use them ;)
>
> On 04/18/2015 03:32 PM, Tobia De Koninck wrote:
>> Hi
>>
>> The Chat app doesn't pass the code check in 8.1 (refs
>> https://github.com/owncloud/chat/issues/219).
>> To be able to run DB unit tests, I have to install (not only enable)
>> the app before the unit tests are run. However the only method to this
>> is   OC_App::enable('chat'); . Of course this doesn't pass the code
>> check.
>>
>> How should I enable the app?
>>
>> Thanks
>>
>> Tobia (LEDfan)
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at owncloud.org
>> http://mailman.owncloud.org/mailman/listinfo/devel
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel




More information about the Devel mailing list