From 2ac92da7335e5b77241640146132dba5f8a0de61 Mon Sep 17 00:00:00 2001 From: Thor Brink Date: Wed, 18 Dec 2024 09:49:24 +0000 Subject: [PATCH] test: add unit test for getFormattedTimeDiff() in SingleEventData --- .../phpunit/tests/Helper/SingleEventData.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/phpunit/tests/Helper/SingleEventData.php diff --git a/tests/phpunit/tests/Helper/SingleEventData.php b/tests/phpunit/tests/Helper/SingleEventData.php new file mode 100644 index 00000000..e20e786d --- /dev/null +++ b/tests/phpunit/tests/Helper/SingleEventData.php @@ -0,0 +1,22 @@ +assertEquals('1 hour 31 mins', SingleEventData::getFormattedTimeDiff($start, $end)); + } +} \ No newline at end of file