for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\Unit\Notifications\Services\Telegram\Entities;
use Orchestra\Testbench\TestCase;
use Skater4\LaravelSentryNotifications\Notifications\Services\Telegram\Entities\NotifableTelegramChannel;
class NotifableTelegramChannelTest extends TestCase
{
/**
* @return void
*/
public function testCanSetAndGetChatId()
$chatId = '123456789';
$entity = new NotifableTelegramChannel($chatId);
$this->assertEquals($chatId, $entity->getChatId());
}
public function testCanSetAndGetMessage()
$message = 'Test Message';
$entity = new NotifableTelegramChannel('123456789');
$entity->setMessage($message);
$this->assertEquals($message, $entity->getMessage());
public function testCanSetAndGetEventUrl()
$eventUrl = 'http://example.com/event';
$entity->setEventUrl($eventUrl);
$this->assertEquals($eventUrl, $entity->getEventUrl());