Always improving
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Jens True 2023-06-16 08:08:09 +00:00
parent fb2f37a189
commit c140d5883c

@ -2,23 +2,16 @@
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
public function testSend(): void
{
//Dependency
$client = $this->createStub(Client::class);
$client = $this->createMock(Client::class);
$sut = new Ntfy($client);
$client->expects($this->once())->method('send');
$client->expects($this->once())->method('send')->with($this->isInstanceOf(Message::class));
$sut->send('title','text');
}
}