Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhartman committed Nov 15, 2019
1 parent 8da5993 commit 6c62368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/WebhookControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6c62368

Please sign in to comment.