From 6c62368930f0a91d74b35236298597f7e3a3aea0 Mon Sep 17 00:00:00 2001 From: Justin Hartman Date: Fri, 15 Nov 2019 03:38:33 +0200 Subject: [PATCH] Fixes #1 --- tests/WebhookControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/WebhookControllerTest.php b/tests/WebhookControllerTest.php index 382af12..94d8baa 100644 --- a/tests/WebhookControllerTest.php +++ b/tests/WebhookControllerTest.php @@ -182,11 +182,11 @@ public function testWebhooksEvents() // prepare category event class names like OrderAny $explodedType = explode('.', $mockEvent['type']); $category = array_shift($explodedType); - $categoryEvent = 'TwentyTwoDigital\CashierFastspring\Events\\'.studly_case($category).'Any'; + $categoryEvent = 'TwentyTwoDigital\CashierFastspring\Events\\'.studly($category).'Any'; // prepare category event class names like activity $activity = str_replace('.', ' ', $mockEvent['type']); - $activityEvent = 'TwentyTwoDigital\CashierFastspring\Events\\'.studly_case($activity); + $activityEvent = 'TwentyTwoDigital\CashierFastspring\Events\\'.studly($activity); $listenEvents = [ Events\Any::class,