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,28 @@
<?php
namespace Mautic\ChannelBundle\Tests\Entity;
use Mautic\CategoryBundle\Entity\Category;
use Mautic\ChannelBundle\Entity\Message;
use PHPUnit\Framework\TestCase;
class MessageTest extends TestCase
{
public function testMessageUpdatesReflectsInChanges(): void
{
$category = new Category();
$category->setTitle('New Category');
$category->setAlias('category');
$category->setBundle('bundle');
$message = new Message();
$message->setName('New Message');
$message->setDescription('random text string for description');
$message->setCategory($category);
$message->setPublishDown(new \DateTime());
$message->setPublishUp(new \DateTime());
$this->assertIsArray($message->getChanges());
$this->assertNotEmpty($message->getChanges());
}
}