File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55
66it ('can create a tracking event ' , function () {
77 mockCustomerIO ();
8- $ trackingEvent = new TrackingEvent (userId: fake ()->email (), tags : [
8+ $ trackingEvent = new TrackingEvent (userId: fake ()->email (), properties : [
99 fake ()->word () => fake ()->word (),
1010 ]);
1111 $ response = CustomerIO::trackEvent ($ trackingEvent );
1414
1515it ('can create an anonymous tracking event ' , function () {
1616 mockCustomerIO ();
17- $ trackingEvent = new TrackingEvent (anonymousId : fake ()->email (), tags : [
17+ $ trackingEvent = new TrackingEvent (userId : fake ()->email (), properties : [
1818 fake ()->word () => fake ()->word (),
1919 ]);
2020 $ response = CustomerIO::trackEvent ($ trackingEvent );
2323
2424it ('can handle errors ' , function () {
2525 mockCustomerIO (trackSuccess: false );
26- $ trackingEvent = new TrackingEvent (userId: fake ()->email (), tags : [
26+ $ trackingEvent = new TrackingEvent (userId: fake ()->email (), properties : [
2727 fake ()->word () => fake ()->word (),
2828 ]);
2929 $ response = CustomerIO::trackEvent ($ trackingEvent );
You can’t perform that action at this time.
0 commit comments