summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-04-22 23:15:22 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-04-22 23:15:22 +0200
commita5ea57f20c1beb80f327fea5233605400462156c (patch)
treebd6281b9519f3fb1bd729327ad6d41649555a0d1 /tests
parent6076d8ae50cc43b7722fcc63e6eba38117f91206 (diff)
downloadgigologadmin-a5ea57f20c1beb80f327fea5233605400462156c.tar.gz
gigologadmin-a5ea57f20c1beb80f327fea5233605400462156c.tar.bz2
gigologadmin-a5ea57f20c1beb80f327fea5233605400462156c.zip
Concert::create return NULL if concert already exist.
We probably need some better error handling here. There's a myriad of reasons why this call could fail, and we might need to communicate the failure reason somewhere.
Diffstat (limited to 'tests')
-rw-r--r--tests/ConcertTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ConcertTest.php b/tests/ConcertTest.php
index 19267ee..82bdc9a 100644
--- a/tests/ConcertTest.php
+++ b/tests/ConcertTest.php
@@ -44,6 +44,6 @@ final class ConcertTest extends WP_UnitTestCase
"https://example.com/tickets/42",
"https://example.com/events/93");
- $this->assertEquals("dup", $new);
+ $this->assertNull($new);
}
}