Initial commit: CloudOps infrastructure platform

This commit is contained in:
root
2026-04-09 19:58:57 +02:00
commit 1166a52f26
7762 changed files with 839452 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace Mautic\PluginBundle\Tests\Event;
use Mautic\PluginBundle\Event\PluginIsPublishedEvent;
class PluginIsPublishedEventTest extends \PHPUnit\Framework\TestCase
{
public function testSettersGetters(): void
{
$pluginIsPublishedEvent = new PluginIsPublishedEvent(1, 'testIntegration');
$this->assertSame('testIntegration', $pluginIsPublishedEvent->getIntegrationName());
$this->assertSame(1, $pluginIsPublishedEvent->getValue());
$this->assertSame('', $pluginIsPublishedEvent->getMessage());
$this->assertTrue($pluginIsPublishedEvent->isCanPublish());
$pluginIsPublishedEvent->setMessage('This is test message.');
$this->assertSame('This is test message.', $pluginIsPublishedEvent->getMessage());
$pluginIsPublishedEvent->setCanPublish(false);
$this->assertFalse($pluginIsPublishedEvent->isCanPublish());
}
}