22
33use Tatter \Assets \Exceptions \AssetsException ;
44use Tatter \Assets \RouteBundle ;
5- use Tests \Support \AssetsTestCase ;
65use Tests \Support \Bundles \FruitSalad ;
76use Tests \Support \Bundles \LunchBreak ;
7+ use Tests \Support \TestCase ;
88
99/**
1010 * @internal
1111 */
12- final class RouteBundleTest extends AssetsTestCase
12+ final class RouteBundleTest extends TestCase
1313{
1414 protected function setUp (): void
1515 {
1616 parent ::setUp ();
1717
18- $ this ->config ->routes = [
18+ $ this ->assets ->routes = [
1919 '* ' => [
2020 'https://pagecdn.io/lib/cleave/1.6.0/cleave.min.js ' ,
2121 FruitSalad::class,
@@ -51,7 +51,7 @@ public function testCreateFromRouteUsesCache()
5151 FruitSalad::class,
5252 ]));
5353
54- $ this ->config ->useCache = true ;
54+ $ this ->assets ->useCache = true ;
5555 $ this ->assertEmpty (cache ()->getCacheInfo ());
5656
5757 // Place a fake bundle in the cache
@@ -64,7 +64,7 @@ public function testCreateFromRouteUsesCache()
6464
6565 public function testCreateFromRouteSavesToCache ()
6666 {
67- $ this ->config ->useCache = true ;
67+ $ this ->assets ->useCache = true ;
6868 $ this ->assertEmpty (cache ()->getCacheInfo ());
6969
7070 $ result = RouteBundle::createFromRoute ('foo ' );
@@ -74,7 +74,7 @@ public function testCreateFromRouteSavesToCache()
7474
7575 public function testCreateFromRouteEmpty ()
7676 {
77- $ this ->config ->routes ['* ' ] = [];
77+ $ this ->assets ->routes ['* ' ] = [];
7878
7979 $ result = RouteBundle::createFromRoute ('foo ' );
8080
@@ -85,7 +85,7 @@ public function testCreateFromRouteEmpty()
8585 public function testCreateFromRouteThrowsNotString ()
8686 {
8787 // @phpstan-ignore-next-line
88- $ this ->config ->routes ['invalid ' ] = [true ];
88+ $ this ->assets ->routes ['invalid ' ] = [true ];
8989
9090 $ this ->expectException ('InvalidArgumentException ' );
9191 $ this ->expectExceptionMessage ('Config $route items must be strings. ' );
@@ -95,7 +95,7 @@ public function testCreateFromRouteThrowsNotString()
9595
9696 public function testCreateFromRouteThrowsInvalidType ()
9797 {
98- $ this ->config ->routes ['invalid ' ] = ['filthyflarmflam ' ];
98+ $ this ->assets ->routes ['invalid ' ] = ['filthyflarmflam ' ];
9999
100100 $ this ->expectException (AssetsException::class);
101101 $ this ->expectExceptionMessage (lang ('Assets.invalidConfigItem ' , ['' ]));
0 commit comments