Noe Misael Nieto Arroyo <[email protected]>
writes:

> I'm trying to write some tests. Looking under the hood I found that 
> PloneTestCase
> class defines two class methods: addProfile() and addProduct(). The former
> "Imports an extension profile into the site." whereas the latter 
> "Quickinstalls a
> product into the site."
>
> What's the difference between both method?

The same difference between using portal_setup to import a profile
versus using portal_quickinstaller to install and add-on.  These days,
for most add-ons, the only thing portal_quickinstaller actually does is
use portal_setup to import a profile, but if your tests require the
installation of an add-on that uses an old-style
.Extensions.Install.install script function, then you'd need to use
addProduct.

In short, use addProfile unless you know for sure you need to use
addProduct.

Ross

_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/product-developers

Reply via email to