@@ -16,17 +16,14 @@ function configureTestEnvironment(): void
1616{
1717 config ()->set ('image-transform-url.signed_urls.enabled ' , true );
1818 config ()->set ('image-transform-url.signed_urls.for_source_directories ' , ['protected ' ]);
19- config ()->set ('image-transform-url.source_directories ' , [
20- 'test-data ' => public_path ('test-data ' ),
21- 'protected ' => Storage::fake ('local ' )->path ('protected ' ),
22- ]);
19+ config ()->set ('image-transform-url.source_directories.protected ' , Storage::fake ('local ' )->path ('protected ' ));
2320}
2421
2522it ('can protect a route with a signed URL ' , function () {
2623 /** @var TestCase $this */
2724 configureTestEnvironment ();
2825
29- Storage::disk ('local ' )->put ('protected/cat.jpg ' , file_get_contents (public_path ('test-data /cat.jpg ' )));
26+ Storage::disk ('local ' )->put ('protected/cat.jpg ' , file_get_contents (public_path ('images /cat.jpg ' )));
3027
3128 assert (Storage::disk ('local ' )->exists ('protected/cat.jpg ' ));
3229
@@ -53,7 +50,7 @@ function configureTestEnvironment(): void
5350 /** @var TestCase $this */
5451 configureTestEnvironment ();
5552
56- Storage::disk ('local ' )->put ('protected/cat.jpg ' , file_get_contents (public_path ('test-data /cat.jpg ' )));
53+ Storage::disk ('local ' )->put ('protected/cat.jpg ' , file_get_contents (public_path ('images /cat.jpg ' )));
5754
5855 assert (Storage::disk ('local ' )->exists ('protected/cat.jpg ' ));
5956
@@ -80,7 +77,7 @@ function configureTestEnvironment(): void
8077 /** @var TestCase $this */
8178 configureTestEnvironment ();
8279
83- Storage::disk ('local ' )->put ('protected/cat.jpg ' , file_get_contents (public_path ('test-data /cat.jpg ' )));
80+ Storage::disk ('local ' )->put ('protected/cat.jpg ' , file_get_contents (public_path ('images /cat.jpg ' )));
8481
8582 assert (Storage::disk ('local ' )->exists ('protected/cat.jpg ' ));
8683
@@ -103,7 +100,7 @@ function configureTestEnvironment(): void
103100
104101 config ()->set ('image-transform-url.default_source_directory ' , 'protected ' );
105102
106- Storage::disk ('local ' )->put ('protected/cat.jpg ' , file_get_contents (public_path ('test-data /cat.jpg ' )));
103+ Storage::disk ('local ' )->put ('protected/cat.jpg ' , file_get_contents (public_path ('images /cat.jpg ' )));
107104
108105 assert (Storage::disk ('local ' )->exists ('protected/cat.jpg ' ));
109106
0 commit comments