11<?php
22
3- class ConfigHandlerTest extends \CodeIgniter \Test \CIUnitTestCase
3+ use CodeIgniter \Test \CIUnitTestCase ;
4+ use Tatter \Assets \Handlers \ConfigHandler ;
5+ use Tatter \Assets \Libraries \Assets ;
6+
7+ class ConfigHandlerTest extends CIUnitTestCase
48{
59 /**
610 * @var \Tatter\Assets\Libraries\Assets
@@ -16,9 +20,9 @@ public function setUp(): void
1620 {
1721 parent ::setUp ();
1822
19- $ this ->config = new \Tatter \Assets \Config \Assets ;
23+ $ this ->config = new \Tatter \Assets \Config \Assets () ;
2024 $ this ->config ->silent = false ;
21- $ this ->config ->fileBase = MODULESUPPORTPATH . 'assets/ ' ;
25+ $ this ->config ->fileBase = SUPPORTPATH . 'assets/ ' ;
2226
2327 // Add mock route paths
2428 $ this ->config ->routes = [
@@ -31,10 +35,10 @@ public function setUp(): void
3135 ];
3236
3337 // Create the service
34- $ this ->assets = new \ Tatter \ Assets \ Libraries \ Assets ($ this ->config );
38+ $ this ->assets = new Assets ($ this ->config );
3539
3640 // Limit to just the ConfigHandler
37- $ this ->assets ->setHandlers ([' \Tatter\Assets\Handlers\ ConfigHandler' ]);
41+ $ this ->assets ->setHandlers ([ConfigHandler::class ]);
3842 }
3943
4044 public function testBasicRoute ()
@@ -56,8 +60,8 @@ public function testRouteWithDirectory()
5660
5761 $ expected = [
5862 'unrouted/machines.js ' ,
59- 'vendor/widget/colorful.css ' ,
6063 'vendor/widget/forms.css ' ,
64+ 'vendor/widget/colorful.css ' ,
6165 ];
6266
6367 $ paths = $ this ->assets ->getPaths ();
0 commit comments