| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\Tests\Application\Utils;
- use App\Tests\Application\OtWebTestCase;
- class SiretTest extends OtWebTestCase
- {
- // Attention, ces tests ne sont pas fonctionnels
- public function testGetAccessId(): void
- {
- $this->loginAs($this->user);
- $this->assertResponseIsSuccessful();
- $this->get('/api/siret-checking/34919841600035');
- $this->assertResponseStatusCodeSame(200);
- $this->assertJsonContains([
- '@context' => 'api/contexts/Siret',
- '@id' => '/api/siret-checking/34919841600035',
- '@type' => 'Siret',
- 'number' => '34919841600035',
- 'isCorrect' => true,
- ]);
- }
- }
|