Browse Source

Clean up UUID fixture names

mscherer 5 years ago
parent
commit
0603c2d726

+ 2 - 2
tests/Fixture/BinaryUuiditemsFixture.php

@@ -17,9 +17,9 @@ namespace Cake\Test\Fixture;
 use Cake\TestSuite\Fixture\TestFixture;
 
 /**
- * BinaryUuiditemsFixture
+ * BinaryUuidItemsFixture
  */
-class BinaryUuiditemsFixture extends TestFixture
+class BinaryUuidItemsFixture extends TestFixture
 {
     /**
      * fields property

+ 1 - 1
tests/Fixture/UuiditemsFixture.php

@@ -19,7 +19,7 @@ use Cake\TestSuite\Fixture\TestFixture;
 /**
  * UuiditemFixture
  */
-class UuiditemsFixture extends TestFixture
+class UuidItemsFixture extends TestFixture
 {
     /**
      * fields property

+ 0 - 44
tests/Fixture/UuidportfoliosFixture.php

@@ -1,44 +0,0 @@
-<?php
-/**
- * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
- * @link          https://cakephp.org CakePHP(tm) Project
- * @since         1.2.0
- * @license       https://opensource.org/licenses/mit-license.php MIT License
- */
-namespace Cake\Test\Fixture;
-
-use Cake\TestSuite\Fixture\TestFixture;
-
-/**
- * UuidportfolioFixture
- */
-class UuidportfoliosFixture extends TestFixture
-{
-    /**
-     * fields property
-     *
-     * @var array
-     */
-    public $fields = [
-        'id' => ['type' => 'uuid'],
-        'name' => ['type' => 'string', 'null' => false],
-        '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]],
-    ];
-
-    /**
-     * records property
-     *
-     * @var array
-     */
-    public $records = [
-        ['id' => '4806e091-6940-4d2b-b227-303740cf8569', 'name' => 'Portfolio 1'],
-        ['id' => '480af662-eb8c-47d3-886b-230540cf8569', 'name' => 'Portfolio 2'],
-    ];
-}

+ 3 - 3
tests/TestCase/ORM/TableUuidTest.php

@@ -31,8 +31,8 @@ class TableUuidTest extends TestCase
      * @var array
      */
     protected $fixtures = [
-        'core.BinaryUuiditems',
-        'core.Uuiditems',
+        'core.BinaryUuidItems',
+        'core.UuidItems',
     ];
 
     /**
@@ -53,7 +53,7 @@ class TableUuidTest extends TestCase
      */
     public function uuidTableProvider()
     {
-        return [['uuiditems'], ['binary_uuiditems']];
+        return [['uuid_items'], ['binary_uuid_items']];
     }
 
     /**