Blame view

tests/Fixture/ConfigurationsFixture.php 8.08 KB
9be43b8a   Alexandre   #3523 Implémentai...
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;

/**
 * ConfigurationsFixture
 *
 */
class ConfigurationsFixture extends TestFixture
{

    /**
     * Fields
     *
     * @var array
     */
    // @codingStandardsIgnoreStart
    public $fields = [
        'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
        'nom' => ['type' => 'string', 'length' => 45, 'null' => false, 'default' => null, 'comment' => 'obligatoire (et unique)', 'precision' => null, 'fixed' => null],
        'mode_install' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        'mode_debug' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
a5276c81   Etienne Pallier   ajout du mode lda...
24
25
26
27
28
29
        'ldap_used' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        'ldap_host' => ['type' => 'text', 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'ldap_port' => ['type' => 'string', 'length' => 10, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'ldap_authenticationType' => ['type' => 'string', 'length' => 30, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'ldap_baseDn' => ['type' => 'string', 'length' => 30, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'ldap_filter' => ['type' => 'string', 'length' => 30, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
9be43b8a   Alexandre   #3523 Implémentai...
30
31
32
33
34
        'labName' => ['type' => 'string', 'length' => 30, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'labNameShort' => ['type' => 'string', 'length' => 20, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'labPresent' => ['type' => 'string', 'length' => 10, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'labUmr' => ['type' => 'string', 'length' => 30, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'hasPrinter' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
e3633c13   Alexandre   Version: 2.4.2.23
35
36
    	'nom_groupe_thematique' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
    	'nom_groupe_metier' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
72d73dc4   Alexandre   Version: 2.4.3.2
37
    	'envoi_mail_management_dev' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
3ab8435b   Alexandre   Version: 2.4.6.4
38
    	'sender_mail' => ['type' => 'string', 'length' => 500, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
a95a41e1   Alexandre   Version: 2.4.6.2
39
    	'emailGuest1' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
9be43b8a   Alexandre   #3523 Implémentai...
40
41
        'emailGuest2' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'emailGuest3' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
e3633c13   Alexandre   Version: 2.4.2.23
42
43
    	'emailGuest4' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
    	'emailGuest5' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
d58b8953   Alexandre   Version: 2.4.4.0
44
45
46
47
48
    	'emailGuest6' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'emailGuest7' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'emailGuest8' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
    	'emailGuest9' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
    	'emailGuest10' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
72d73dc4   Alexandre   Version: 2.4.3.2
49
    	'test' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
15ebf91f   Alexandre   Version: 2.4.7.2
50
51
    	'date_commande_facultative' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
    	'numero_labo_sans_annee' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
9cfb4997   Alexandre   Version: 2.4.3.10
52
    	'prix_inventaire_administratif' => ['type' => 'integer', 'length' => 10, 'null' => true, 'default' => 800, 'comment' => '', 'precision' => null],
4dae83a2   Alexandre   Version: 2.5.1.0
53
    	'taille_max_doc' => ['type' => 'integer', 'length' => 15, 'null' => true, 'default' => 8000000, 'comment' => '', 'precision' => null],
32b504ee   Alexis Proust   mise a jour test
54
    	'metrologie' => [ 'type' => 'boolean' , 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
164ad0a0   Etienne Pallier   Grosse ameliorati...
55
56
57
    'aff_par_defaut' => ['type' => 'integer', 'length' => 6, 'null' => false, 'default' => 20, 'comment' => '', 'precision' => null],
    'procedure_sur_accueil' => [ 'type' => 'boolean' , 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        
72d73dc4   Alexandre   Version: 2.4.3.2
58
    	'_constraints' => [
9be43b8a   Alexandre   #3523 Implémentai...
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
            'nom_UNIQUE' => ['type' => 'unique', 'columns' => ['nom'], 'length' => []],
        ],
        '_options' => [
            'engine' => 'InnoDB',
            'collation' => 'latin1_swedish_ci'
        ],
    ];
    // @codingStandardsIgnoreEnd

    /**
     * Records
     *
     * @var array
     */
    public $records = [
        [
            'id' => 1,
            'nom' => 'Lorem ipsum dolor sit amet',
9212589e   Alexandre   Ajout tests (débu...
78
79
            'mode_install' => 0,
            'mode_debug' => 0,
bc14f1eb   Etienne Pallier   LDAP CACHED v3
80
            
a5276c81   Etienne Pallier   ajout du mode lda...
81
82
83
            'ldap_used' => 0,
            'ldap_host' => 'Lorem ipsum dolor sit amet',
            'ldap_port' => 'Lorem ip',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
84
85
            //'ldap_authenticationType' => 'cn',
            'ldap_authenticationType' => 'uid',
a5276c81   Etienne Pallier   ajout du mode lda...
86
87
            'ldap_baseDn' => 'Lorem ipsum dolor sit amet',
            'ldap_filter' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
88
89
90
91
92
93
94
95
96
            
            'ldap_cached' => 1,
            'ldap_cache_validity_duration' => 1,
            
            // FPDF
            //'pdf_engine' => 'FPDF',
            // DOM_PDF
            'pdf_engine' => 'DOMPDF',
            
9212589e   Alexandre   Ajout tests (débu...
97
98
99
            'labName' => 'TestLong',
            'labNameShort' => 'TEST',
            'labPresent' => 'de ',
9be43b8a   Alexandre   #3523 Implémentai...
100
            'labUmr' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
101
            
9212589e   Alexandre   Ajout tests (débu...
102
            'hasPrinter' => 0,
e3633c13   Alexandre   Version: 2.4.2.23
103
104
        	'nom_groupe_thematique' => 'Lorem ipsum dolor sit amet',
        	'nom_groupe_metier' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
105
106
        	
            'envoi_mail_management_dev' => 1,
3ab8435b   Alexandre   Version: 2.4.6.4
107
        	'sender_mail' => 'ezarear@localhost.com',
9be43b8a   Alexandre   #3523 Implémentai...
108
109
            'emailGuest1' => 'Lorem ipsum dolor sit amet',
            'emailGuest2' => 'Lorem ipsum dolor sit amet',
e3633c13   Alexandre   Version: 2.4.2.23
110
111
            'emailGuest3' => 'Lorem ipsum dolor sit amet',
        	'emailGuest4' => 'Lorem ipsum dolor sit amet',
72d73dc4   Alexandre   Version: 2.4.3.2
112
        	'emailGuest5' => 'Lorem ipsum dolor sit amet',
d58b8953   Alexandre   Version: 2.4.4.0
113
114
115
116
117
        	'emailGuest6' => 'Lorem ipsum dolor sit amet',
        	'emailGuest7' => 'Lorem ipsum dolor sit amet',
        	'emailGuest8' => 'Lorem ipsum dolor sit amet',
        	'emailGuest9' => 'Lorem ipsum dolor sit amet',
        	'emailGuest10' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
118
119
120
        	
            'test' => 1,
            
9cfb4997   Alexandre   Version: 2.4.3.10
121
        	'prix_inventaire_administratif' => 800,
bc14f1eb   Etienne Pallier   LDAP CACHED v3
122
123
124
125
            //'prix_inventaire_administratif' => 1000,
            
            'metrologie' => 1,
            'procedure_sur_accueil' => 1,
164ad0a0   Etienne Pallier   Grosse ameliorati...
126
            
9be43b8a   Alexandre   #3523 Implémentai...
127
128
129
        ],
    ];
}