Skip to content

Commit 0e7a1af

Browse files
committed
fix failing tests and pin to v6
1 parent 43bedff commit 0e7a1af

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"require": {
1414
"php": "^8.1",
1515
"pixelfear/composer-dist-plugin": "^0.1.5",
16-
"statamic/cms": "^4.55 || ^5.0"
16+
"statamic/cms": "^6.0"
1717
},
1818
"require-dev": {
1919
"laravel/pint": "^1.13",
@@ -39,5 +39,6 @@
3939
"pestphp/pest-plugin": true,
4040
"pixelfear/composer-dist-plugin": true
4141
}
42-
}
42+
},
43+
"minimum-stability": "alpha"
4344
}

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)