Blame view

tests/Fixture/ConfigurationsFixture.php 9.03 KB
9be43b8a   Alexandre   #3523 Implémentai...
1
2
3
4
5
6
7
8
9
10
11
12
<?php
namespace App\Test\Fixture;

use Cake\TestSuite\Fixture\TestFixture;

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

93790936   Etienne Pallier   Tests Fixtures =>...
13
    public $import = ['model' => 'Configurations'];
9be43b8a   Alexandre   #3523 Implémentai...
14
15
16
17
18
    /**
     * Fields
     *
     * @var array
     */
93790936   Etienne Pallier   Tests Fixtures =>...
19
    /*
9be43b8a   Alexandre   #3523 Implémentai...
20
21
22
23
24
25
    // @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],
e0602ede   Etienne Pallier   Plusieurs amélior...
26
        'mode_nolimit' => ['type' => 'boolean', 'length' => null, 'null' => false, 'default' => false, 'comment' => '', 'precision' => null],
a5276c81   Etienne Pallier   ajout du mode lda...
27
28
29
30
31
32
        '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...
33
34
35
36
        '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],
bcc25a64   Etienne Pallier   Tests génériques ...
37

9be43b8a   Alexandre   #3523 Implémentai...
38
        'hasPrinter' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
bcc25a64   Etienne Pallier   Tests génériques ...
39
40
41
42
        // (EP 20200611)
        'label_format_num' => ['type' => 'integer', 'length' => 3, 'unsigned' => true, 'null' => false, 'default' => 1, 'comment' => '', 'precision' => null],
    	
        'nom_groupe_thematique' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
e3633c13   Alexandre   Version: 2.4.2.23
43
    	'nom_groupe_metier' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
93790936   Etienne Pallier   Tests Fixtures =>...
44
45
46
47
48
49
    	//'envoi_mail_management_dev' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        
        'envoi_mail' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        'envoi_mail_guests' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        
        'sender_mail' => ['type' => 'string', 'length' => 500, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
a95a41e1   Alexandre   Version: 2.4.6.2
50
    	'emailGuest1' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
9be43b8a   Alexandre   #3523 Implémentai...
51
52
        '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
53
54
    	'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
55
56
57
58
59
    	'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
60
    	'test' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
15ebf91f   Alexandre   Version: 2.4.7.2
61
62
    	'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
63
    	'prix_inventaire_administratif' => ['type' => 'integer', 'length' => 10, 'null' => true, 'default' => 800, 'comment' => '', 'precision' => null],
4dae83a2   Alexandre   Version: 2.5.1.0
64
    	'taille_max_doc' => ['type' => 'integer', 'length' => 15, 'null' => true, 'default' => 8000000, 'comment' => '', 'precision' => null],
32b504ee   Alexis Proust   mise a jour test
65
    	'metrologie' => [ 'type' => 'boolean' , 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
bcc25a64   Etienne Pallier   Tests génériques ...
66
67
        '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],
164ad0a0   Etienne Pallier   Grosse ameliorati...
68
        
72d73dc4   Alexandre   Version: 2.4.3.2
69
    	'_constraints' => [
9be43b8a   Alexandre   #3523 Implémentai...
70
71
72
73
74
75
76
77
78
            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
            'nom_UNIQUE' => ['type' => 'unique', 'columns' => ['nom'], 'length' => []],
        ],
        '_options' => [
            'engine' => 'InnoDB',
            'collation' => 'latin1_swedish_ci'
        ],
    ];
    // @codingStandardsIgnoreEnd
93790936   Etienne Pallier   Tests Fixtures =>...
79
    */
9be43b8a   Alexandre   #3523 Implémentai...
80
81
82
83
84
85
86
87

    /**
     * Records
     *
     * @var array
     */
    public $records = [
        [
bcc25a64   Etienne Pallier   Tests génériques ...
88
            //'id' => 1,
9be43b8a   Alexandre   #3523 Implémentai...
89
            'nom' => 'Lorem ipsum dolor sit amet',
9212589e   Alexandre   Ajout tests (débu...
90
91
            'mode_install' => 0,
            'mode_debug' => 0,
e0602ede   Etienne Pallier   Plusieurs amélior...
92
            'mode_nolimit' => 0,
bc14f1eb   Etienne Pallier   LDAP CACHED v3
93
            
a5276c81   Etienne Pallier   ajout du mode lda...
94
95
96
            'ldap_used' => 0,
            'ldap_host' => 'Lorem ipsum dolor sit amet',
            'ldap_port' => 'Lorem ip',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
97
98
            //'ldap_authenticationType' => 'cn',
            'ldap_authenticationType' => 'uid',
a5276c81   Etienne Pallier   ajout du mode lda...
99
100
            'ldap_baseDn' => 'Lorem ipsum dolor sit amet',
            'ldap_filter' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
101
102
103
104
105
106
107
108
109
            
            'ldap_cached' => 1,
            'ldap_cache_validity_duration' => 1,
            
            // FPDF
            //'pdf_engine' => 'FPDF',
            // DOM_PDF
            'pdf_engine' => 'DOMPDF',
            
9212589e   Alexandre   Ajout tests (débu...
110
111
112
            'labName' => 'TestLong',
            'labNameShort' => 'TEST',
            'labPresent' => 'de ',
9be43b8a   Alexandre   #3523 Implémentai...
113
            'labUmr' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
114
            
bcc25a64   Etienne Pallier   Tests génériques ...
115
116
117
118
119
            // (EP 20200611)
            //'hasPrinter' => 0,
            'hasPrinter' => 1,
            // (EP 20200611)
            'label_format_num' => 1,
bcc25a64   Etienne Pallier   Tests génériques ...
120
            'nom_groupe_thematique' => 'Lorem ipsum dolor sit amet',
e3633c13   Alexandre   Version: 2.4.2.23
121
        	'nom_groupe_metier' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
122
        	
93790936   Etienne Pallier   Tests Fixtures =>...
123
124
            //'envoi_mail_management_dev' => 1,
            'envoi_mail' => 1,
ae5c9639   Etienne Pallier   Grosse améliorati...
125
            'envoi_mail_guests' => 0,
93790936   Etienne Pallier   Tests Fixtures =>...
126
            'sender_mail' => 'ezarear@localhost.com',
9be43b8a   Alexandre   #3523 Implémentai...
127
128
            'emailGuest1' => 'Lorem ipsum dolor sit amet',
            'emailGuest2' => 'Lorem ipsum dolor sit amet',
e3633c13   Alexandre   Version: 2.4.2.23
129
130
            'emailGuest3' => 'Lorem ipsum dolor sit amet',
        	'emailGuest4' => 'Lorem ipsum dolor sit amet',
72d73dc4   Alexandre   Version: 2.4.3.2
131
        	'emailGuest5' => 'Lorem ipsum dolor sit amet',
d58b8953   Alexandre   Version: 2.4.4.0
132
133
134
135
136
        	'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
137
138
139
        	
            'test' => 1,
            
9cfb4997   Alexandre   Version: 2.4.3.10
140
        	'prix_inventaire_administratif' => 800,
bc14f1eb   Etienne Pallier   LDAP CACHED v3
141
142
143
144
            //'prix_inventaire_administratif' => 1000,
            
            'metrologie' => 1,
            'procedure_sur_accueil' => 1,
bcc25a64   Etienne Pallier   Tests génériques ...
145
                        
9be43b8a   Alexandre   #3523 Implémentai...
146
147
148
        ],
    ];
}