public function testDropUniqueConstraint() { $this->client->createUniqueConstraint('ToDrop', 'username'); $this->assertArrayHasKey('ToDrop', $this->client->getUniqueConstraints()->getBody()); $this->client->dropUniqueConstraint('ToDrop', 'username'); $this->assertArrayNotHasKey('ToDrop', $this->client->getUniqueConstraints()->getBody()); }
/** * @group schema * @group integration * @group legacy */ public function testLegacyUniqueConstraints() { $this->client->createUniqueConstraint('User', 'id'); $constraints = $this->client->getUniqueConstraints(); $this->assertArrayHasKey('User', $constraints->getBody()); }