From 28a5ea160b55cf5eb8d1de7b77259dee949e696d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 8 Aug 2016 22:35:18 -0400 Subject: [PATCH] CRM-17663 - Add tests --- tests/phpunit/CRM/Core/BAO/DashboardTest.php | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 tests/phpunit/CRM/Core/BAO/DashboardTest.php diff --git a/tests/phpunit/CRM/Core/BAO/DashboardTest.php b/tests/phpunit/CRM/Core/BAO/DashboardTest.php new file mode 100644 index 0000000000..f7c034a247 --- /dev/null +++ b/tests/phpunit/CRM/Core/BAO/DashboardTest.php @@ -0,0 +1,61 @@ +assertEquals($expectedResult, CRM_Core_BAO_Dashboard::parseUrl($input)); + } + + public function parseUrlTestData() { + return array( + array('https://foo.bar', 'https://foo.bar'), + array('civicrm/path?reset=1&unit=test', CRM_Utils_System::url('civicrm/path', 'reset=1&unit=test', FALSE, NULL, FALSE)), + ); + } + +} -- 2.25.1