From 97eedd793237dc45d44409013e45696bcb772721 Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Sat, 24 Apr 2021 20:42:43 +0200 Subject: added venue test to check duplicate with all letter cases CSS for edit form in giglog --- tests/VenueTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') diff --git a/tests/VenueTest.php b/tests/VenueTest.php index 4278951..1fde15e 100644 --- a/tests/VenueTest.php +++ b/tests/VenueTest.php @@ -41,6 +41,17 @@ final class VenueTest extends WP_UnitTestCase $this->assertEquals($other->name(), $venue->name()); } + public function testFindOrCreateExistingVenueVariableCase() : void + { + global $wpdb; + + $venue = GiglogAdmin_Venue::create("This is not the venue you are looking for"); + $other = GiglogAdmin_Venue::find_or_create("ThiS IS noT tHe VenuE YOu aRe looking FoR"); + + $this->assertEquals($other->id(), $venue->id()); + $this->assertEquals($other->name(), $venue->name()); + } + public function testFindAllVenuesInCity() : void { global $wpdb; -- cgit v1.2.3