| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Tests\Application\Public;
- use App\Tests\Application\OtWebTestCase;
- class PublicStructuresTest extends OtWebTestCase
- {
- public function testGetIndex(): void
- {
- $crawler = static::createClient()->request('GET', '/api/public/federation_structures');
- $this->assertResponseIsSuccessful();
- $this->assertJsonContains([
- '@context' => '/api/contexts/FederationStructure',
- '@id' => '/api/public/federation_structures',
- '@type' => 'hydra:Collection',
- 'hydra:totalItems' => 2,
- 'hydra:member' => [
- ['name' => 'Root2'],
- ['name' => 'Other Organization'],
- ],
- ]);
- }
- }
|