File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,11 @@ class CorsServiceTest extends TestCase
2424 public function itCanHaveOptions ()
2525 {
2626 $ service = new CorsService ([
27- 'allowedOrigins ' => ['* ' ]
27+ 'allowedOrigins ' => ['localhost ' ]
2828 ]);
2929
3030 $ this ->assertInstanceOf (CorsService::class, $ service );
31+ $ this ->assertEquals (['localhost ' ], $ this ->getOptionsFromService ($ service )['allowedOrigins ' ]);
3132 }
3233
3334 /**
@@ -37,6 +38,7 @@ public function itCanHaveNoOptions()
3738 {
3839 $ service = new CorsService ();
3940 $ this ->assertInstanceOf (CorsService::class, $ service );
41+ $ this ->assertEquals ([], $ this ->getOptionsFromService ($ service )['allowedOrigins ' ]);
4042 }
4143
4244 /**
@@ -46,6 +48,7 @@ public function itCanHaveEmptyOptions()
4648 {
4749 $ service = new CorsService ([]);
4850 $ this ->assertInstanceOf (CorsService::class, $ service );
51+ $ this ->assertEquals ([], $ this ->getOptionsFromService ($ service )['allowedOrigins ' ]);
4952 }
5053
5154 /**
You can’t perform that action at this time.
0 commit comments