Blame view

tests/Fixture/EmpruntsFixture.php 5.55 KB
6c4edfa3   Alexandre   First Commit LabI...
1
2
3
4
5
6
7
8
9
10
11
12
<?php
namespace App\Test\Fixture;

use Cake\TestSuite\Fixture\TestFixture;

/**
 * EmpruntsFixture
 *
 */
class EmpruntsFixture extends TestFixture
{

93790936   Etienne Pallier   Tests Fixtures =>...
13
    public $import = ['model' => 'Emprunts'];
6c4edfa3   Alexandre   First Commit LabI...
14
15
16
17
18
    /**
     * Fields
     *
     * @var array
     */
93790936   Etienne Pallier   Tests Fixtures =>...
19
    /*
6c4edfa3   Alexandre   First Commit LabI...
20
21
22
    // @codingStandardsIgnoreStart
    public $fields = [
        'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
4775e899   Etienne Pallier   Tests génériques ...
23
        'nom' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => 'emprunt', 'comment' => '', 'precision' => null, 'fixed' => null],
6c4edfa3   Alexandre   First Commit LabI...
24
25
26
27
28
        'materiel_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
        'date_emprunt' => ['type' => 'date', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        'date_retour_emprunt' => ['type' => 'date', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        'emprunt_interne' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
        'laboratoire' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
ebe38bef   Alexandre   #3586 Ajout assoc...
29
        'site_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
6c4edfa3   Alexandre   First Commit LabI...
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
        'e_lieu_detail' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'nom_emprunteur' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'email_emprunteur' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'tel' => ['type' => 'string', 'length' => 20, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'commentaire' => ['type' => 'string', 'length' => 200, 'null' => true, 'default' => null, '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],
        '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],
        '_indexes' => [
            'fk_technical_materials_internal_loans_copy1_admi_materials1' => ['type' => 'index', 'columns' => ['materiel_id'], 'length' => []],
        ],
        '_constraints' => [
            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
            'fk_technical_materials_internal_loans_copy1_admi_materials1' => ['type' => 'foreign', 'columns' => ['materiel_id'], 'references' => ['materiels', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
ebe38bef   Alexandre   #3586 Ajout assoc...
45
        	'fk_emprunts_site_id' => ['type' => 'foreign', 'columns' => ['site_id'], 'references' => ['sites', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
6c4edfa3   Alexandre   First Commit LabI...
46
47
48
49
50
51
52
        ],
        '_options' => [
            'engine' => 'InnoDB',
            'collation' => 'latin1_swedish_ci'
        ],
    ];
    // @codingStandardsIgnoreEnd
93790936   Etienne Pallier   Tests Fixtures =>...
53
    */
6c4edfa3   Alexandre   First Commit LabI...
54
55
56
57
58
59
60
61

    /**
     * Records
     *
     * @var array
     */
    public $records = [
        [
bcc25a64   Etienne Pallier   Tests génériques ...
62
            //'id' => 1,
4775e899   Etienne Pallier   Tests génériques ...
63
            'nom' => 'emprunt_1',
bc6fe47e   Etienne Pallier   Version: 3.7.9.28
64
            'materiel_id' => 3, // validated
6c4edfa3   Alexandre   First Commit LabI...
65
66
67
68
            'date_emprunt' => '2016-04-19',
            'date_retour_emprunt' => '2016-04-19',
            'emprunt_interne' => 1,
            'laboratoire' => 'Lorem ipsum dolor sit amet',
da7f42f6   Etienne Pallier   Diverses simplifi...
69
            'site_id' => 1, // Roche
6c4edfa3   Alexandre   First Commit LabI...
70
71
72
73
74
75
76
77
78
79
            'e_lieu_detail' => 'Lorem ipsum dolor sit amet',
            'nom_emprunteur' => 'Lorem ipsum dolor sit amet',
            'email_emprunteur' => 'Lorem ipsum dolor sit amet',
            'tel' => 'Lorem ipsum dolor ',
            '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:26',
            'modified' => '2016-04-19 09:09:26'
        ],
bcc25a64   Etienne Pallier   Tests génériques ...
80
81
		[
    		//'id' => 2,
4775e899   Etienne Pallier   Tests génériques ...
82
		    'nom' => 'emprunt_2',
bc6fe47e   Etienne Pallier   Version: 3.7.9.28
83
84
85
    		//'materiel_id' => 1, // created
    		'materiel_id' => 12, // validated
		    'date_emprunt' => '2016-04-19',
183ce554   Alexandre   Ajout de test, su...
86
87
88
    		'date_retour_emprunt' => '2016-04-19',
    		'emprunt_interne' => 0,
    		'laboratoire' => 'Lorem ipsum dolor sit amet',
da7f42f6   Etienne Pallier   Diverses simplifi...
89
    		'site_id' => 1, // Roche
183ce554   Alexandre   Ajout de test, su...
90
91
92
93
94
95
96
97
98
    		'e_lieu_detail' => 'Lorem ipsum dolor sit amet',
    		'nom_emprunteur' => 'Lorem ipsum dolor sit amet',
    		'email_emprunteur' => 'Lorem ipsum dolor sit amet',
    		'tel' => 'Lorem ipsum dolor ',
    		'commentaire' => 'TEST VIEW EMPRUNT VALIDE',
    		'nom_createur' => 'Lorem ipsum dolor sit amet',
    		'nom_modificateur' => 'Lorem ipsum dolor sit amet',
    		'created' => '2016-04-19 09:09:26',
    		'modified' => '2016-04-19 09:09:26'
5faf8198   Etienne Pallier   Tests génériques ...
99
		],
6c4edfa3   Alexandre   First Commit LabI...
100
    ];
5faf8198   Etienne Pallier   Tests génériques ...
101

6c4edfa3   Alexandre   First Commit LabI...
102
}