backupscript/tests/Notification/NtfyTest.php
Jens True c140d5883c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Always improving
2023-06-16 08:08:09 +00:00

17 lines
439 B
PHP

<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use App\Notification\Ntfy;
use Ntfy\Client;
use Ntfy\Message;
final class NtfyTest extends TestCase
{
public function testSend(): void
{
$client = $this->createMock(Client::class);
$sut = new Ntfy($client);
$client->expects($this->once())->method('send')->with($this->isInstanceOf(Message::class));
$sut->send('title','text');
}
}