backupscript/tests/Notification/NtfyTest.php
Jens True f41571cfd2
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
More tests and refactoring
2023-06-15 14:10:17 +00:00

24 lines
494 B
PHP

<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;
use App\Notification\Ntfy;
use Ntfy\Server;
use Ntfy\Client;
use Ntfy\Message;
final class NtfyTest extends TestCase
{
/**
* @doesNotPerformAssertions
*/
public function testDoesSomething(): void
{
//Dependency
$client = $this->createStub(Client::class);
$sut = new Ntfy($client);
$client->expects($this->once())->method('send');
$sut->send('title','text');
}
}