| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\Tests\Application\Cotisation;
- use App\Tests\Application\OtWebTestCase;
- class CotisationTest extends OtWebTestCase
- {
- public function testGetCotisationId(): void
- {
- // TODO : ces tests nécessitent la base de données adminassos pour fonctionner
- $this->loginAs($this->user);
- $this->assertResponseIsSuccessful();
- $this->get('/api/cotisations/1');
- $this->assertResponseStatusCodeSame(200);
- $this->assertJsonContains([
- '@context' => '/api/contexts/Cotisation',
- '@id' => '/api/cotisations/1',
- '@type' => 'Cotisation',
- 'organizationId' => 1,
- 'alertState' => 'null',
- 'cotisationYear' => 2021
- ]);
- }
- }
|