Blame view

tests/Fixture/DocumentsFixture.php 3.02 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;

/**
 * DocumentsFixture
 *
 */
class DocumentsFixture extends TestFixture
{

93790936   Etienne Pallier   Tests Fixtures =>...
13
    public $import = ['model' => 'Documents'];
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
23
    // @codingStandardsIgnoreStart
    public $fields = [
        'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
        'type_doc' => ['type' => 'string', 'length' => 20, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
4fd23929   Alexandre   Version: 2.5.0
24
25
        'materiel_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
        'suivi_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
9b4da83b   Alexandre   Version: 2.5.0.0
26
27
        'nom' => ['type' => 'string', 'length' => 100, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
        'type_document_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'default' => '1', 'comment' => '', 'precision' => null, 'autoIncrement' => null],
4dae83a2   Alexandre   Version: 2.5.1.0
28
29
    	'photo' => ['type' => 'boolean', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
    	'_indexes' => [
6c4edfa3   Alexandre   First Commit LabI...
30
31
            'fk_documents_materiel_id' => ['type' => 'index', 'columns' => ['materiel_id'], 'length' => []],
            'fk_documents_suivi_id' => ['type' => 'index', 'columns' => ['suivi_id'], 'length' => []],
9b4da83b   Alexandre   Version: 2.5.0.0
32
            'fk_documents_type_documents_id' => ['type' => 'index', 'columns' => ['type_document_id'], 'length' => []],
6c4edfa3   Alexandre   First Commit LabI...
33
34
35
        ],
        '_constraints' => [
            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
9b4da83b   Alexandre   Version: 2.5.0.0
36
            'fk_documents_type_documents_id' => ['type' => 'foreign', 'columns' => ['type_document_id'], 'references' => ['type_documents', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
6c4edfa3   Alexandre   First Commit LabI...
37
38
39
40
41
42
43
44
45
            'fk_documents_materiel_id' => ['type' => 'foreign', 'columns' => ['materiel_id'], 'references' => ['materiels', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
            'fk_documents_suivi_id' => ['type' => 'foreign', 'columns' => ['suivi_id'], 'references' => ['suivis', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
        ],
        '_options' => [
            'engine' => 'InnoDB',
            'collation' => 'latin1_swedish_ci'
        ],
    ];
    // @codingStandardsIgnoreEnd
93790936   Etienne Pallier   Tests Fixtures =>...
46
    */
6c4edfa3   Alexandre   First Commit LabI...
47
48
49
50
51
52
53
54

    /**
     * Records
     *
     * @var array
     */
    public $records = [
        [
bcc25a64   Etienne Pallier   Tests génériques ...
55
            //'id' => 1,
4775e899   Etienne Pallier   Tests génériques ...
56
            'nom' => 'Lorem ipsum dolor sit amet',
6c4edfa3   Alexandre   First Commit LabI...
57
            'type_doc' => 'Lorem ipsum dolor ',
4775e899   Etienne Pallier   Tests génériques ...
58
59
            //'type_document_id' => 1
            'type_document_id' => null,
9212589e   Alexandre   Ajout tests (débu...
60
            'materiel_id' => 3,
9b4da83b   Alexandre   Version: 2.5.0.0
61
            'suivi_id' => 1,
6c4edfa3   Alexandre   First Commit LabI...
62
63
64
        ],
    ];
}