diff options
Diffstat (limited to 'Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/contacts/RecipientsTest.php')
-rw-r--r-- | Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/contacts/RecipientsTest.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/contacts/RecipientsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/contacts/RecipientsTest.php deleted file mode 100644 index b82764e..0000000 --- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/contacts/RecipientsTest.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -namespace SendGrid\Tests; - -use SendGrid\Tests\BaseTestClass; -use SendGrid\Contacts\RecipientForm; -use SendGrid\Contacts\Recipient; - -class RecipientsTestRecipient extends BaseTestClass -{ - public function testRecipientsForm() - { - $form = (string) new RecipientForm('http://www.example.com/recipientFormSubmit'); - $this->assertEquals( - $form, '<form action="http://www.example.com/recipientFormSubmit" method="post"> - First Name: <input type="text" name="first-name"><br> - Last Name: <input type="text" name="last-name"><br> - E-mail: <input type="text" name="email"><br> - <input type="submit"> -</form>' - ); - } - public function testRecipientsFormSubmit() - { - $firstName = 'Test'; - $lastName = 'Tester'; - $email = 'test@test.com'; - $recipient = new Recipient($firstName, $lastName, $email); - $json = json_encode($recipient); - $this->assertEquals($json, '{"email":"test@test.com","first_name":"Test","last_name":"Tester"}'); - } -} |