Skip to content

Commit adf333f

Browse files
committed
fix failing tests and pin to v6
1 parent 693e4dc commit adf333f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
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.2",
1515
"pixelfear/composer-dist-plugin": "^0.1.5",
16-
"statamic/cms": "*"
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/EventListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function it_tracks_tags_from_events()
2323
return response('');
2424
};
2525

26-
$middleware = new CacheTracker;
26+
$middleware = new CacheTracker();
2727
$middleware->handle($request, $next);
2828

2929
$this->assertSame(['test::tag'], collect(Tracker::all())->firstWhere('url', 'http://localhost')['tags']);
@@ -40,7 +40,7 @@ public function dispatching_job_clears_tags()
4040
return response('');
4141
};
4242

43-
$middleware = new CacheTracker;
43+
$middleware = new CacheTracker();
4444
$middleware->handle($request, $next);
4545

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

0 commit comments

Comments
 (0)