| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | public function check_access_origin() |
||
| 9 | { |
||
| 10 | config(['tma-helper.cors.allowedOrigins' => ['localhost']]); |
||
| 11 | $crawler = $this->call('GET', 'api/ping'); |
||
| 12 | $this->assertEquals('localhost', $crawler->headers->get('Access-Control-Allow-Origin')); |
||
| 13 | $this->assertEquals(200, $crawler->getStatusCode()); |
||
| 14 | } |
||
| 16 |