Spaces:
No application file
No application file
File size: 1,204 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
<?php
declare(strict_types=1);
namespace MauticPlugin\MauticSocialBundle\Tests\Functional;
use Mautic\CoreBundle\Test\MauticMysqlTestCase;
use PHPUnit\Framework\Assert;
class SocialCommandsTest extends MauticMysqlTestCase
{
public function testSocialMonitoringCommand(): void
{
$commandTester = $this->testSymfonyCommand('mautic:social:monitoring');
Assert::assertSame(0, $commandTester->getStatusCode());
Assert::assertSame("No published monitors found. Make sure the id you supplied is published\n", $commandTester->getDisplay());
}
public function testTwitterHashtagsCommand(): void
{
$commandTester = $this->testSymfonyCommand('social:monitor:twitter:hashtags');
Assert::assertSame(1, $commandTester->getStatusCode());
Assert::assertSame("Twitter plugin not published!\n", $commandTester->getDisplay());
}
public function testTwitterMentionsCommand(): void
{
$commandTester = $this->testSymfonyCommand('social:monitor:twitter:mentions');
Assert::assertSame(1, $commandTester->getStatusCode());
Assert::assertSame("Twitter plugin not published!\n", $commandTester->getDisplay());
}
}
|