From f9a33110872bd48470b8df22ca4d1155685b7511 Mon Sep 17 00:00:00 2001 From: Joshua Sherman Date: Sat, 11 Jan 2014 19:37:47 -0500 Subject: [PATCH] More tests for the Gravatar class Trying to cover all of the bases. --- tests/classes/API/GravatarTest.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/classes/API/GravatarTest.php b/tests/classes/API/GravatarTest.php index 20d9938..319e5a6 100644 --- a/tests/classes/API/GravatarTest.php +++ b/tests/classes/API/GravatarTest.php @@ -62,6 +62,22 @@ class API_Gravatar_Test extends PHPUnit_Framework_TestCase ); } + public function testForce() + { + $this->assertEquals( + '', + API_Gravatar::img('foo@bar.com', 80, 'gravatar', 'g', true) + ); + } + + public function testSecure() + { + $this->assertEquals( + '', + API_Gravatar::img('foo@bar.com', 80, 'gravatar', 'g', false, true) + ); + } + public function testImg() { $this->assertEquals(