We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89aee26 commit 2ca6f9aCopy full SHA for 2ca6f9a
tests/ActivityLoggerTest.php
@@ -148,6 +148,21 @@
148
expect($firstActivity->getExtraProperty('property.subProperty'))->toEqual('value');
149
});
150
151
+it('can log activity with null properties', function () {
152
+ $properties = [
153
+ 'property' => null
154
+ ];
155
+
156
+ activity()
157
+ ->withProperties($properties)
158
+ ->log($this->activityDescription);
159
160
+ $firstActivity = Activity::first();
161
162
+ expect($firstActivity->properties)->toBeInstanceOf(Collection::class);
163
+ expect($firstActivity->getExtraProperty('property'))->toBeNull();
164
+});
165
166
it('can log activity with a single properties', function () {
167
activity()
168
->withProperty('key', 'value')
0 commit comments