Spaces:
No application file
No application file
| namespace Mautic\PluginBundle\Tests\Helper; | |
| use Doctrine\DBAL\Schema\Schema; | |
| use Mautic\CoreBundle\Factory\MauticFactory; | |
| use Mautic\PluginBundle\Entity\Plugin; | |
| use Symfony\Component\HttpKernel\Bundle\Bundle; | |
| /** | |
| * A stub Base Bundle class which implements stub methods for testing purposes. | |
| */ | |
| abstract class PluginBundleBaseStub extends Bundle | |
| { | |
| /** | |
| * @throws \Exception | |
| */ | |
| public static function onPluginInstall(Plugin $plugin, MauticFactory $factory, $metadata = null, $installedSchema = null): void | |
| { | |
| } | |
| /** | |
| * Called by PluginController::reloadAction when the addon version does not match what's installed. | |
| * | |
| * @throws \Exception | |
| */ | |
| public static function onPluginUpdate(Plugin $plugin, MauticFactory $factory, $metadata = null, Schema $installedSchema = null) | |
| { | |
| } | |
| } | |