namespace Symfony\Component\Notifier\Bridge\MicrosoftTeams\Tests\Action;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\Element\Header;
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\HttpPostAction;
final class HttpPostActionTest extends TestCase
{ public function testName() { $action =
(new HttpPostAction()) ->
name($value = 'My name'
);
$this->
assertSame($value,
$action->
toArray()['name'
]);
} public function testTarget() { $action =
(new HttpPostAction()) ->
target($value = 'https://symfony.com'
);
$this->
assertSame($value,
$action->
toArray()['target'
]);
}