The proceedings in such cases shall be in all respects similar to the course of procedure in actions for injunctions.