From 0cd9e20dd437793280dec99ff4935ba5b8e8b414 Mon Sep 17 00:00:00 2001 From: Dan Walker Date: Wed, 11 Jan 2017 12:38:22 +0000 Subject: [PATCH] Bug fix in test --- tests/Core/Models/ICSCalendar.Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Core/Models/ICSCalendar.Test.php b/tests/Core/Models/ICSCalendar.Test.php index 1df52052..ccdbb537 100644 --- a/tests/Core/Models/ICSCalendar.Test.php +++ b/tests/Core/Models/ICSCalendar.Test.php @@ -5,7 +5,7 @@ class ICSCalendar extends \PHPUnit_Framework_TestCase{ public function testCreate(){ $resCalendar = \Twist::ICS()->createCalendar(); - $this->assertTrue(strstr($resCalendar->getRaw(), 'BEGIN:VCALENDAR')); + $this->assertTrue(strstr($resCalendar->getRaw(), 'BEGIN:VCALENDAR') !== false); $resCalendar->prodID('test-id'); $this->assertTrue(strstr($resCalendar->getRaw(), 'PRODID') && strstr($resCalendar->getRaw(), 'test-id'));