Blame view

tests/Fixture/CategoriesFixture.php 1.96 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;

/**
 * CategoriesFixture
 *
 */
class CategoriesFixture extends TestFixture
{

93790936   Etienne Pallier   Tests Fixtures =>...
13
    public $import = ['model' => 'Categories'];
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    // @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],
        'sur_categorie_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'autoIncrement' => null],
        '_indexes' => [
            'fk_sur_categorie_id' => ['type' => 'index', 'columns' => ['sur_categorie_id'], 'length' => []],
        ],
        '_constraints' => [
            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
            'nom_UNIQUE' => ['type' => 'unique', 'columns' => ['nom'], 'length' => []],
            'fk_sur_categorie_id' => ['type' => 'foreign', 'columns' => ['sur_categorie_id'], 'references' => ['sur_categories', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
        ],
        '_options' => [
            'engine' => 'InnoDB',
            'collation' => 'latin1_swedish_ci'
        ],
    ];
    // @codingStandardsIgnoreEnd
93790936   Etienne Pallier   Tests Fixtures =>...
39
    */
6c4edfa3   Alexandre   First Commit LabI...
40
41
42
43
44
45
46
47

    /**
     * Records
     *
     * @var array
     */
    public $records = [
        [
bcc25a64   Etienne Pallier   Tests génériques ...
48
            //'id' => 1,
b6f3fdbf   Etienne Pallier   add tests for dom...
49
            'nom' => 'Categ1',
6c4edfa3   Alexandre   First Commit LabI...
50
51
            'sur_categorie_id' => 1
        ],
b6f3fdbf   Etienne Pallier   add tests for dom...
52
        [
bcc25a64   Etienne Pallier   Tests génériques ...
53
            //'id' => 2,
b6f3fdbf   Etienne Pallier   add tests for dom...
54
55
56
57
            'nom' => 'Categ2',
            'sur_categorie_id' => 1
        ],
        [
bcc25a64   Etienne Pallier   Tests génériques ...
58
            //'id' => 3,
b6f3fdbf   Etienne Pallier   add tests for dom...
59
60
61
            'nom' => 'Categ3',
            'sur_categorie_id' => 2
        ],
6c4edfa3   Alexandre   First Commit LabI...
62
63
    ];
}