SiretTest.php 665 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Tests\Application\Utils;
  3. use App\Tests\Application\OtWebTestCase;
  4. class SiretTest extends OtWebTestCase
  5. {
  6. // Attention, ces tests ne sont pas fonctionnels
  7. public function testGetAccessId(): void
  8. {
  9. $this->loginAs($this->user);
  10. $this->assertResponseIsSuccessful();
  11. $this->get('/api/siret-checking/34919841600035');
  12. $this->assertResponseStatusCodeSame(200);
  13. $this->assertJsonContains([
  14. '@context' => 'api/contexts/Siret',
  15. '@id' => '/api/siret-checking/34919841600035',
  16. '@type' => 'Siret',
  17. 'number' => '34919841600035',
  18. 'isCorrect' => true,
  19. ]);
  20. }
  21. }