From 69db40df609a388cf840dd76ae1d960a07363c20 Mon Sep 17 00:00:00 2001 From: Icaro Ferreira Date: Tue, 9 Sep 2025 12:20:29 -0300 Subject: [PATCH] feat: Add tests to FakeSenderWrapper --- tests/FakeSenderWrapperTest.php | 66 +++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 tests/FakeSenderWrapperTest.php diff --git a/tests/FakeSenderWrapperTest.php b/tests/FakeSenderWrapperTest.php new file mode 100644 index 0000000..3a8a6fc --- /dev/null +++ b/tests/FakeSenderWrapperTest.php @@ -0,0 +1,66 @@ +send($envelope); + } + + public function testBasicEnvelope() + { + $envelope = $this->getBasicEnvelope(); + + $result = $this->doFakeSend($envelope); + + $this->assertTrue($result->success); + $this->assertEquals('fake-id-123', $result->id); + } + + public function testFullEnvelope() + { + $envelope = $this->getFullEnvelope(); + + $result = $this->doFakeSend($envelope); + + $this->assertTrue($result->success); + $this->assertEquals('fake-id-123', $result->id); + } + + public function testAttachmentEnvelope() + { + $envelope = $this->getAttachmentEnvelope(); + + $result = $this->doFakeSend($envelope); + + $this->assertTrue($result->success); + $this->assertEquals('fake-id-123', $result->id); + } + + public function testEmbedImageEnvelope() + { + $envelope = $this->getEmbedImageEnvelope(); + + $result = $this->doFakeSend($envelope); + + $this->assertTrue($result->success); + $this->assertEquals('fake-id-123', $result->id); + } +}