loadSchema(); $crawler = $this->get('api/public/federation_structures'); $this->validateCollectionSchema(FederationStructure::class); $this->assertJsonContains([ '@context' => '/api/contexts/FederationStructure', '@id' => '/api/public/federation_structures', '@type' => 'hydra:Collection', 'hydra:totalItems' => 1, 'hydra:member' => [ ["name" => "Root2"], ["name" => "Other Organization"], ], ]); } }