File tree Expand file tree Collapse file tree
ProcessMaker/Cache/Screens Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class RequestControllerShowTest extends TestCase
1919 protected function setUp (): void
2020 {
2121 parent ::setUp ();
22-
22+
2323 $ this ->user = User::factory ()->create ([
2424 'is_administrator ' => true ,
2525 ]);
@@ -88,10 +88,10 @@ public function testShowPageRendersManagerModelerScripts()
8888
8989 // Get the filtered scripts (should exclude the disabled ones)
9090 $ managerModelerScripts = $ response ->viewData ('managerModelerScripts ' );
91-
91+
9292 // Assert that the filtered scripts contain only the allowed scripts
9393 $ this ->assertCount (2 , $ managerModelerScripts );
94-
94+
9595 // Check that the disabled scripts are filtered out
9696 $ scriptSources = array_column ($ managerModelerScripts , 'src ' );
9797 $ this ->assertContains ('/js/test-script-1.js ' , $ scriptSources );
@@ -105,7 +105,7 @@ public function testShowPageRendersManagerModelerScripts()
105105 $ response ->assertSee ('type="module" ' , false );
106106 $ response ->assertSee ('async ' );
107107 $ response ->assertSee ('defer ' );
108-
108+
109109 // Assert that disabled scripts are not rendered
110110 $ response ->assertDontSee ('/js/package-slideshow.js ' );
111111 $ response ->assertDontSee ('/js/package-process-optimization.js ' );
Original file line number Diff line number Diff line change 33namespace Tests \Unit \Middleware ;
44
55use Illuminate \Http \UploadedFile ;
6- use PHPUnit \Framework \Attributes \AllowMockObjectsWithoutExpectations ;
76use Illuminate \Support \Facades \Route ;
7+ use PHPUnit \Framework \Attributes \AllowMockObjectsWithoutExpectations ;
88use ProcessMaker \Http \Middleware \FileSizeCheck ;
99use ProcessMaker \Models \ProcessRequest ;
1010use ProcessMaker \Models \User ;
Original file line number Diff line number Diff line change 33namespace Tests \Unit \ProcessMaker \Cache \Screens ;
44
55use Illuminate \Cache \CacheManager ;
6- use PHPUnit \Framework \Attributes \AllowMockObjectsWithoutExpectations ;
76use Illuminate \Support \Facades \Config ;
7+ use PHPUnit \Framework \Attributes \AllowMockObjectsWithoutExpectations ;
88use ProcessMaker \Cache \CacheInterface ;
99use ProcessMaker \Cache \Monitoring \CacheMetricsDecorator ;
1010use ProcessMaker \Cache \Monitoring \RedisMetricsManager ;
You can’t perform that action at this time.
0 commit comments