Blame view

tests/Fixture/ConfigurationsFixture.php 8.54 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
{

bcc25a64   Etienne Pallier   Tests génériques ...
13
14
15
16
    //public $import = ['table' => 'materiels'];
    // ou encore :
    //public $import = ['model' => 'Materiels'];
    
9be43b8a   Alexandre   #3523 Implémentai...
17
18
19
20
21
22
23
24
25
26
27
    /**
     * 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...
28
29
30
31
32
33
        '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...
34
35
36
37
        '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 ...
38

9be43b8a   Alexandre   #3523 Implémentai...
39
        'hasPrinter' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
bcc25a64   Etienne Pallier   Tests génériques ...
40
41
42
43
        // (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
44
    	'nom_groupe_metier' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
72d73dc4   Alexandre   Version: 2.4.3.2
45
    	'envoi_mail_management_dev' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
3ab8435b   Alexandre   Version: 2.4.6.4
46
    	'sender_mail' => ['type' => 'string', 'length' => 500, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
a95a41e1   Alexandre   Version: 2.4.6.2
47
    	'emailGuest1' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
9be43b8a   Alexandre   #3523 Implémentai...
48
49
        '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
50
51
    	'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
52
53
54
55
56
    	'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
57
    	'test' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
15ebf91f   Alexandre   Version: 2.4.7.2
58
59
    	'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
60
    	'prix_inventaire_administratif' => ['type' => 'integer', 'length' => 10, 'null' => true, 'default' => 800, 'comment' => '', 'precision' => null],
4dae83a2   Alexandre   Version: 2.5.1.0
61
    	'taille_max_doc' => ['type' => 'integer', 'length' => 15, 'null' => true, 'default' => 8000000, 'comment' => '', 'precision' => null],
32b504ee   Alexis Proust   mise a jour test
62
    	'metrologie' => [ 'type' => 'boolean' , 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
bcc25a64   Etienne Pallier   Tests génériques ...
63
64
        '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...
65
        
72d73dc4   Alexandre   Version: 2.4.3.2
66
    	'_constraints' => [
9be43b8a   Alexandre   #3523 Implémentai...
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
            '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 = [
        [
bcc25a64   Etienne Pallier   Tests génériques ...
84
            //'id' => 1,
9be43b8a   Alexandre   #3523 Implémentai...
85
            'nom' => 'Lorem ipsum dolor sit amet',
9212589e   Alexandre   Ajout tests (débu...
86
87
            'mode_install' => 0,
            'mode_debug' => 0,
bc14f1eb   Etienne Pallier   LDAP CACHED v3
88
            
a5276c81   Etienne Pallier   ajout du mode lda...
89
90
91
            'ldap_used' => 0,
            'ldap_host' => 'Lorem ipsum dolor sit amet',
            'ldap_port' => 'Lorem ip',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
92
93
            //'ldap_authenticationType' => 'cn',
            'ldap_authenticationType' => 'uid',
a5276c81   Etienne Pallier   ajout du mode lda...
94
95
            'ldap_baseDn' => 'Lorem ipsum dolor sit amet',
            'ldap_filter' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
96
97
98
99
100
101
102
103
104
            
            'ldap_cached' => 1,
            'ldap_cache_validity_duration' => 1,
            
            // FPDF
            //'pdf_engine' => 'FPDF',
            // DOM_PDF
            'pdf_engine' => 'DOMPDF',
            
9212589e   Alexandre   Ajout tests (débu...
105
106
107
            'labName' => 'TestLong',
            'labNameShort' => 'TEST',
            'labPresent' => 'de ',
9be43b8a   Alexandre   #3523 Implémentai...
108
            'labUmr' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
109
            
bcc25a64   Etienne Pallier   Tests génériques ...
110
111
112
113
114
            // (EP 20200611)
            //'hasPrinter' => 0,
            'hasPrinter' => 1,
            // (EP 20200611)
            'label_format_num' => 1,
bcc25a64   Etienne Pallier   Tests génériques ...
115
            'nom_groupe_thematique' => 'Lorem ipsum dolor sit amet',
e3633c13   Alexandre   Version: 2.4.2.23
116
        	'nom_groupe_metier' => 'Lorem ipsum dolor sit amet',
bc14f1eb   Etienne Pallier   LDAP CACHED v3
117
118
        	
            'envoi_mail_management_dev' => 1,
3ab8435b   Alexandre   Version: 2.4.6.4
119
        	'sender_mail' => 'ezarear@localhost.com',
9be43b8a   Alexandre   #3523 Implémentai...
120
121
            'emailGuest1' => 'Lorem ipsum dolor sit amet',
            'emailGuest2' => 'Lorem ipsum dolor sit amet',
e3633c13   Alexandre   Version: 2.4.2.23
122
123
            'emailGuest3' => 'Lorem ipsum dolor sit amet',
        	'emailGuest4' => 'Lorem ipsum dolor sit amet',
72d73dc4   Alexandre   Version: 2.4.3.2
124
        	'emailGuest5' => 'Lorem ipsum dolor sit amet',
d58b8953   Alexandre   Version: 2.4.4.0
125
126
127
128
129
        	'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
130
131
132
        	
            'test' => 1,
            
9cfb4997   Alexandre   Version: 2.4.3.10
133
        	'prix_inventaire_administratif' => 800,
bc14f1eb   Etienne Pallier   LDAP CACHED v3
134
135
136
137
            //'prix_inventaire_administratif' => 1000,
            
            'metrologie' => 1,
            'procedure_sur_accueil' => 1,
bcc25a64   Etienne Pallier   Tests génériques ...
138
                        
9be43b8a   Alexandre   #3523 Implémentai...
139
140
141
        ],
    ];
}