Skip to content

Commit d45b233

Browse files
committed
Add test for session similarity
1 parent 254d653 commit d45b233

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/FilterTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ public function testUserIdIncrements(): void
5252
$this->seeInDatabase('visits', ['views' => 2]);
5353
}
5454

55+
/**
56+
* @runInSeparateProcess
57+
*/
58+
public function testSessionIdIncrements(): void
59+
{
60+
config('Visits')->trackingMethod = 'session_id';
61+
session_id('abc123');
62+
$this->call();
63+
$this->call();
64+
65+
$this->seeInDatabase('visits', ['views' => 2]);
66+
}
67+
5568
public function testBeforeRecords(): void
5669
{
5770
$this->call('before');

0 commit comments

Comments
 (0)