[owncloud-devel] Installing App when running unit tests

Bernhard Posselt dev at bernhard-posselt.com
Sat Apr 18 14:02:20 GMT 2015


Usecase for those methods? App installer/enabling an app utterly
confusing and is scattered in multiple places in core; it needs to be
cleaned up at some point. Relying on that private api feature will
likely break your app in future releases.

On 04/18/2015 03:44 PM, Tobia De Koninck wrote:
> 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
>
>
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel



More information about the Devel mailing list