Skip to content

Commit

Permalink
Fixes 22digital#12.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhartman committed Nov 15, 2019
1 parent 8be4c42 commit ed4f22e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/WebhookControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Str;
use Orchestra\Testbench\TestCase;

class WebhookControllerTest extends TestCase
Expand Down Expand Up @@ -182,11 +183,11 @@ public function testWebhooksEvents()
// prepare category event class names like OrderAny
$explodedType = explode('.', $mockEvent['type']);
$category = array_shift($explodedType);
$categoryEvent = 'TwentyTwoDigital\CashierFastspring\Events\\'.studly($category).'Any';
$categoryEvent = 'TwentyTwoDigital\CashierFastspring\Events\\'.Str::studly($category).'Any';

// prepare category event class names like activity
$activity = str_replace('.', ' ', $mockEvent['type']);
$activityEvent = 'TwentyTwoDigital\CashierFastspring\Events\\'.studly($activity);
$activityEvent = 'TwentyTwoDigital\CashierFastspring\Events\\'.Str::studly($activity);

$listenEvents = [
Events\Any::class,
Expand Down

0 comments on commit ed4f22e

Please sign in to comment.