Merge branch 'release-2.140.115'
[feisty_meow.git] / production / example_apps / zippy_maps / tests / Fixture / LocationsFixture.php
diff --git a/production/example_apps/zippy_maps/tests/Fixture/LocationsFixture.php b/production/example_apps/zippy_maps/tests/Fixture/LocationsFixture.php
new file mode 100644 (file)
index 0000000..fe44867
--- /dev/null
@@ -0,0 +1,57 @@
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * LocationsFixture
+ *
+ */
+class LocationsFixture extends TestFixture
+{
+
+    /**
+     * Fields
+     *
+     * @var array
+     */
+    // @codingStandardsIgnoreStart
+    public $fields = [
+        'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => true, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
+        'name' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null, 'fixed' => null],
+        'location' => ['type' => 'string', 'length' => 1024, 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null, 'fixed' => null],
+        'lat' => ['type' => 'float', 'null' => true, 'default' => null, ],
+       'lng' => ['type' => 'float', 'null' => true, 'default' => null, ],              
+        'created' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
+        'modified' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
+        '_indexes' => [
+            'location' => ['type' => 'index', 'columns' => ['location'], 'length' => []],
+        ],
+        '_constraints' => [
+            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
+            'name' => ['type' => 'unique', 'columns' => ['name'], 'length' => []],
+        ],
+        '_options' => [
+            'engine' => 'InnoDB',
+            'collation' => 'utf8_general_ci'
+        ],
+    ];
+    // @codingStandardsIgnoreEnd
+
+    /**
+     * Records
+     *
+     * @var array
+     */
+    public $records = [
+        [
+            'id' => 1,
+            'name' => 'Lorem ipsum dolor sit amet',
+            'location' => 'Lorem ipsum dolor sit amet',
+            'lat' => 30.8,
+               'lng' => -12.6,
+               'created' => '2017-04-21 14:54:02',
+            'modified' => '2017-04-21 14:54:02'
+        ],
+    ];
+}