/** * Tests the getDropPrimaryKeySQL method. * * @return void * * @since 12.1 */ public function testGetDropPrimaryKeySQL() { $instance = new JDatabaseImporterPostgresqlInspector(); $instance->setDbo($this->dbo); $this->assertThat($instance->getDropPrimaryKeySQL('jos_test', 'idx_jos_test_pkey'), $this->equalTo('ALTER TABLE ONLY "jos_test" DROP CONSTRAINT "idx_jos_test_pkey"'), 'getDropPrimaryKeySQL did not yield the expected result.'); }