diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-09-16 20:35:45 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-09-16 20:35:45 +0200 |
commit | 7e00fa32ea8262de0a98ff78fb5be1dc16204aea (patch) | |
tree | 23f68b8c44b6cf1e5cc15af764b25c1606a6458f /tests | |
parent | 517bcd562df96e48d320f19cb3c11eea7b6c641c (diff) | |
download | gigologadmin-7e00fa32ea8262de0a98ff78fb5be1dc16204aea.tar.gz gigologadmin-7e00fa32ea8262de0a98ff78fb5be1dc16204aea.tar.bz2 gigologadmin-7e00fa32ea8262de0a98ff78fb5be1dc16204aea.zip |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ConcertTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } } |