use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\OpenUriAction;
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsOptions;
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Section\Section;
use Symfony\Component\Notifier\Exception\InvalidArgumentException;
use Symfony\Component\Notifier\Notification\Notification;
final class MicrosoftTeamsOptionsTest extends TestCase
{ public function testFromNotification() { $notification =
(new Notification($subject = 'Subject'
)) ->
content($content = 'Content'
);
$this->
assertSame( [ 'title' =>
$subject,
'text' =>
$content,
'@type' => 'MessageCard',
'@context' => 'https://schema.org/extensions',
],
MicrosoftTeamsOptions::
fromNotification($notification)->
toArray() );
}