Blame view

tests/Fixture/SuivisFixture.php 6.13 KB
6c4edfa3   Alexandre   First Commit LabI...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
namespace App\Test\Fixture;

use Cake\TestSuite\Fixture\TestFixture;

/**
 * SuivisFixture
 *
 */
class SuivisFixture extends TestFixture
{

    /**
     * Fields
     *
     * @var array
     */
    // @codingStandardsIgnoreStart
    public $fields = [
        'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
        'materiel_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
        'date_controle' => ['type' => 'date', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        'date_prochain_controle' => ['type' => 'date', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
ebe38bef   Alexandre   #3586 Ajout assoc...
24
        'type_suivi_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
e9a0cc56   Alexandre   Version: 2.4.6.0
25
26
    	'groupes_metier_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
    	'groupes_thematique_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
6c4edfa3   Alexandre   First Commit LabI...
27
28
        'organisme' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'frequence' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
e55ca961   Alexandre   Version: 2.4.2.8
29
    	'type_frequence' => ['type' => 'string', 'length' =>30, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
9cfb4997   Alexandre   Version: 2.4.3.10
30
    	'panne_resolu' => ['type' => 'boolean', 'length' =>null, 'null' => true, 'default' => 1, 'comment' => '', 'precision' => null, 'fixed' => null],
e55ca961   Alexandre   Version: 2.4.2.8
31
    	'commentaire' => ['type' => 'string', 'length' => 100, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
aca4ed9b   Alexandre   Version: 2.5.4.0
32
33
    	'statut' => ['type' => 'string', 'length' => 30, 'null' => true, 'default' => 'En cours', 'comment' => '', 'precision' => null, 'fixed' => null],
    	'nom_createur' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => 'nom du createur de la fiche', 'precision' => null, 'fixed' => null],
6c4edfa3   Alexandre   First Commit LabI...
34
35
36
        'nom_modificateur' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => 'nom du modificateur de la fiche', 'precision' => null, 'fixed' => null],
        'created' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'comment' => 'date et heure de creation de la fiche', 'precision' => null],
        'modified' => ['type' => 'datetime', 'length' => null, 'null' => true, 'default' => null, 'comment' => 'date et heure de modif de la fiche', 'precision' => null],
aec8e407   Alexis Proust   mise a jour test
37
38
39
        'intitule' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => 'En cours', 'comment' => '', 'precision' => null, 'fixed' => null],
		'unite_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
		'_indexes' => [
6c4edfa3   Alexandre   First Commit LabI...
40
41
42
43
44
            'fk_admi_material_histories_admi_materials1' => ['type' => 'index', 'columns' => ['materiel_id'], 'length' => []],
        ],
        '_constraints' => [
            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
            'fk_admi_material_histories_admi_materials1' => ['type' => 'foreign', 'columns' => ['materiel_id'], 'references' => ['materiels', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
ebe38bef   Alexandre   #3586 Ajout assoc...
45
        	'fk_suivis_type_suivi_id' => ['type' => 'foreign', 'columns' => ['type_suivi_id'], 'references' => ['type_suivis', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
e9a0cc56   Alexandre   Version: 2.4.6.0
46
47
        	'fk_suivis_groupe_metier' => ['type' => 'foreign', 'columns' => ['groupes_metier_id'], 'references' => ['groupes_metiers', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
        	'fk_suivis_groupe_thematique' => ['type' => 'foreign', 'columns' => ['groupes_thematique_id'], 'references' => ['groupes_thematiques', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
aec8e407   Alexis Proust   mise a jour test
48
49
			'fk_suivis_unite_id' => ['type' => 'foreign', 'columns' => ['unite_id'], 'references' => ['unites', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
		],
6c4edfa3   Alexandre   First Commit LabI...
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
        '_options' => [
            'engine' => 'InnoDB',
            'collation' => 'latin1_swedish_ci'
        ],
    ];
    // @codingStandardsIgnoreEnd

    /**
     * Records
     *
     * @var array
     */
    public $records = [
        [
            'id' => 1,
9212589e   Alexandre   Ajout tests (débu...
65
            'materiel_id' => 3,
6c4edfa3   Alexandre   First Commit LabI...
66
67
            'date_controle' => '2016-04-19',
            'date_prochain_controle' => '2016-04-19',
ebe38bef   Alexandre   #3586 Ajout assoc...
68
            'type_suivi_id' => 1,
e9a0cc56   Alexandre   Version: 2.4.6.0
69
70
        	'groupes_metier_id' => 1,
        	'groupes_thematique_id' => 1,
9850a95a   Alexandre   Version: 2.4.7.1
71
            'organisme' => 'dolor sit amet',
6c4edfa3   Alexandre   First Commit LabI...
72
            'frequence' => 1,
e55ca961   Alexandre   Version: 2.4.2.8
73
        	'type_frequence' => '/ Jours',
6c4edfa3   Alexandre   First Commit LabI...
74
75
76
77
            'commentaire' => 'Lorem ipsum dolor sit amet',
            'nom_createur' => 'Lorem ipsum dolor sit amet',
            'nom_modificateur' => 'Lorem ipsum dolor sit amet',
            'created' => '2016-04-19 09:09:28',
aec8e407   Alexis Proust   mise a jour test
78
79
80
            'modified' => '2016-04-19 09:09:28',
			'intitule' => 'test',
			
6c4edfa3   Alexandre   First Commit LabI...
81
        ],
183ce554   Alexandre   Ajout de test, su...
82
83
84
    	[
    		'id' => 2,
    		'materiel_id' => 1,
9850a95a   Alexandre   Version: 2.4.7.1
85
86
    		'date_controle' => '2018-04-19',
    		'date_prochain_controle' => '2018-04-19',
ebe38bef   Alexandre   #3586 Ajout assoc...
87
    		'type_suivi_id' => 1,
e9a0cc56   Alexandre   Version: 2.4.6.0
88
89
    		'groupes_metier_id' => 1,
    		'groupes_thematique_id' => 1,
183ce554   Alexandre   Ajout de test, su...
90
91
    		'organisme' => 'Lorem ipsum dolor sit amet',
    		'frequence' => 1,
e55ca961   Alexandre   Version: 2.4.2.8
92
    		'type_frequence' => '/ Jours',
183ce554   Alexandre   Ajout de test, su...
93
94
95
96
    		'commentaire' => 'TEST VIEW SUIVI VALIDE',
    		'nom_createur' => 'Lorem ipsum dolor sit amet',
    		'nom_modificateur' => 'Lorem ipsum dolor sit amet',
    		'created' => '2016-04-19 09:09:28',
aec8e407   Alexis Proust   mise a jour test
97
98
    		'modified' => '2016-04-19 09:09:28',
			'intitule' => 'test'
183ce554   Alexandre   Ajout de test, su...
99
    	],
6c4edfa3   Alexandre   First Commit LabI...
100
101
    ];
}