diff --git a/tests/Unit/ExceptionsTest.php b/tests/Unit/ExceptionsTest.php index 5310fdd..579f0e6 100644 --- a/tests/Unit/ExceptionsTest.php +++ b/tests/Unit/ExceptionsTest.php @@ -14,6 +14,12 @@ public function testGetRandomBucketWhenNoBucketsAreAdded() (new BucketManager)->getRandomBucket(); } + public function testRedirectWhenNoBucketsAreAdded() + { + $this->expectException(Exception::class); + (new BucketManager)->redirect(); + } + public function testCreatingWeightedBucketWithStringWeight() { $this->expectException(Exception::class);