Skip to content

Commit 2d97373

Browse files
committed
fix failing tests
1 parent 3fb6bce commit 2d97373

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Unit/AdditionalTrackerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function tracks_additional_closures()
1717

1818
$this->get('/');
1919

20-
$this->assertSame(['test::tag', 'pages:home'], collect(Tracker::all())->firstWhere('url', 'http://localhost/')['tags']);
20+
$this->assertSame(['test::tag', 'pages:home'], collect(Tracker::all())->firstWhere('url', 'http://localhost')['tags']);
2121
}
2222

2323
#[Test]
@@ -27,7 +27,7 @@ public function tracks_additional_classes()
2727

2828
$this->get('/');
2929

30-
$this->assertSame(['additional::tag', 'pages:home'], collect(Tracker::all())->firstWhere('url', 'http://localhost/')['tags']);
30+
$this->assertSame(['additional::tag', 'pages:home'], collect(Tracker::all())->firstWhere('url', 'http://localhost')['tags']);
3131
}
3232
}
3333

tests/Unit/EventListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function it_tracks_tags_from_events()
2626
$middleware = new CacheTracker;
2727
$middleware->handle($request, $next);
2828

29-
$this->assertSame(['test::tag'], collect(Tracker::all())->firstWhere('url', 'http://localhost/')['tags']);
29+
$this->assertSame(['test::tag'], collect(Tracker::all())->firstWhere('url', 'http://localhost')['tags']);
3030
}
3131

3232
#[Test]
@@ -43,7 +43,7 @@ public function dispatching_job_clears_tags()
4343
$middleware = new CacheTracker;
4444
$middleware->handle($request, $next);
4545

46-
$this->assertSame(['test::tag'], collect(Tracker::all())->firstWhere('url', 'http://localhost/')['tags']);
46+
$this->assertSame(['test::tag'], collect(Tracker::all())->firstWhere('url', 'http://localhost')['tags']);
4747

4848
InvalidateTags::dispatch(['test::tag']);
4949

0 commit comments

Comments
 (0)