self::USER_ADMIN, 'roles'=> [UserGroupPermissions::ROLE_SUPER_ADMIN]]); PartitionFactory::createMany(10); $this->createClientWithCredentials()->request('GET', '/partitions'); $this->assertResponseStatusCodeSame(Response::HTTP_OK); $this->assertResponseHeaderSame('content-type', 'application/ld+json; charset=utf-8'); $this->assertJsonContains([ '@context' => '/contexts/Partition', '@id' => '/partitions', '@type' => 'hydra:Collection', 'hydra:totalItems' => 10, ]); } }