/** * @expectedException \ActiveCollab\DatabaseConnection\Exception\QueryException * @expectedExceptionMessage Can't DROP 'field that does not exist'; check that column/key exists */ public function testUnsafeDropNonExistingField() { $this->assertCount(3, $this->connection->getFieldNames('writers')); $this->connection->dropField('writers', 'field that does not exist', false); $this->assertCount(3, $this->connection->getFieldNames('writers')); }