From 7e00fa32ea8262de0a98ff78fb5be1dc16204aea Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 16 Sep 2021 20:35:45 +0200 Subject: Fix ConcertTest::testFetchConcertByVenueAndDate. Since the date column has changed types, so has the representation in the concert class. We should really change the property in the Concert class be a proper DateTime object. --- tests/ConcertTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ConcertTest.php b/tests/ConcertTest.php index 02ce58e..4f27f0f 100644 --- a/tests/ConcertTest.php +++ b/tests/ConcertTest.php @@ -212,6 +212,6 @@ final class ConcertTest extends WP_UnitTestCase $gig = array_shift($gigs); $this->assertEquals('a concert', $gig->cname()); $this->assertEquals('a venue', $gig->venue()->name()); - $this->assertEquals(date('Y-m-d'), $gig->cdate()); + $this->assertEquals(date('Y-m-d'), explode(' ', $gig->cdate())[0]); } } -- cgit v1.2.3