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
24
24
public function itCanHaveOptions ()
25
25
{
26
26
$ service = new CorsService ([
27
- 'allowedOrigins ' => ['* ' ]
27
+ 'allowedOrigins ' => ['localhost ' ]
28
28
]);
29
29
30
30
$ this ->assertInstanceOf (CorsService::class, $ service );
31
+ $ this ->assertEquals (['localhost ' ], $ this ->getOptionsFromService ($ service )['allowedOrigins ' ]);
31
32
}
32
33
33
34
/**
@@ -37,6 +38,7 @@ public function itCanHaveNoOptions()
37
38
{
38
39
$ service = new CorsService ();
39
40
$ this ->assertInstanceOf (CorsService::class, $ service );
41
+ $ this ->assertEquals ([], $ this ->getOptionsFromService ($ service )['allowedOrigins ' ]);
40
42
}
41
43
42
44
/**
@@ -46,6 +48,7 @@ public function itCanHaveEmptyOptions()
46
48
{
47
49
$ service = new CorsService ([]);
48
50
$ this ->assertInstanceOf (CorsService::class, $ service );
51
+ $ this ->assertEquals ([], $ this ->getOptionsFromService ($ service )['allowedOrigins ' ]);
49
52
}
50
53
51
54
/**
You can’t perform that action at this time.
0 commit comments