| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function check_access_origin() |
||
| 17 | { |
||
| 18 | config(['tma-helper.cors.allowedOrigins' => ['localhost']]); |
||
| 19 | $crawler = $this->call('GET', 'api/ping'); |
||
| 20 | $this->assertEquals('localhost', $crawler->headers->get('Access-Control-Allow-Origin')); |
||
| 21 | $this->assertEquals(200, $crawler->getStatusCode()); |
||
| 22 | } |
||
| 23 | } |