mautic / app /bundles /ChannelBundle /Tests /Command /SendChannelBroadcastCommandTest.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
<?php
declare(strict_types=1);
namespace Mautic\ChannelBundle\Tests\Command;
use Mautic\CoreBundle\Test\MauticMysqlTestCase;
use PHPUnit\Framework\Assert;
final class SendChannelBroadcastCommandTest extends MauticMysqlTestCase
{
public function testBroadcastCommand(): void
{
$commandTester = $this->testSymfonyCommand('mautic:broadcasts:send');
Assert::assertSame(0, $commandTester->getStatusCode());
}
public function testBroadcastCommandWithLimit(): void
{
$commandTester = $this->testSymfonyCommand('mautic:broadcasts:send', ['--limit' => 1]);
Assert::assertSame(0, $commandTester->getStatusCode());
}
}