summaryrefslogtreecommitdiffstats
path: root/tests/VenueTest.php
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-24 20:42:43 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-24 20:42:43 +0200
commit97eedd793237dc45d44409013e45696bcb772721 (patch)
tree1b1c996dc816c3f65cd6aa7720f1e01de976bc58 /tests/VenueTest.php
parented163a66fd56ce82efb2c04eba8cde0c4dc7412a (diff)
downloadgigologadmin-97eedd793237dc45d44409013e45696bcb772721.tar.gz
gigologadmin-97eedd793237dc45d44409013e45696bcb772721.tar.bz2
gigologadmin-97eedd793237dc45d44409013e45696bcb772721.zip
added venue test to check duplicate with all letter cases
CSS for edit form in giglog
Diffstat (limited to 'tests/VenueTest.php')
-rw-r--r--tests/VenueTest.php11
1 files changed, 11 insertions, 0 deletions
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;