#263 ✓resolved
Jelle Henkens

Baked fixture files have bad tab indentation

Reported by Jelle Henkens | September 7th, 2011 @ 12:03 PM

Using the infinitas template when baking fixtures it generates bad indentation in the file.

Example:

{{{ <?php

class GeneoToolFixture extends CakeTestFixture {
    public $name = 'GeneoTool';

        public $fields = array(
    'id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'primary', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 45, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'short_name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 45, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'geneo_tool_parameter_set_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 36, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'geneo_company_id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
    'created' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
    'modified' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
    'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'geneo_company_id' => array('column' => 'geneo_company_id', 'unique' => 0), 'geneo_tool_parameter_set_id' => array('column' => 'geneo_tool_parameter_set_id', 'unique' => 0)),
    'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
);

        public $records = array(
    array(
        'id' => '4e673876-1b80-439d-bfe1-48976318cd70',
        'name' => 'Lorem ipsum dolor sit amet',
        'short_name' => 'Lorem ipsum dolor sit amet',
        'geneo_tool_parameter_set_id' => 'Lorem ipsum dolor sit amet',
        'geneo_company_id' => 'Lorem ipsum dolor sit amet',
        'created' => '2011-09-07 09:25:10',
        'modified' => '2011-09-07 09:25:10'
    ),
);
    }

}}}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Please use this for the current version of Infinitas only, if you are using a older version of the Infinitas report bugs in that project.

Please submit bugs only as pending, and if its a feature request submit the ticket with the milestone "Feature Requests".

Shared Ticket Bins

People watching this ticket

Pages