Browse Source

Remove deprecated method of 3.x.

mscherer 6 years ago
parent
commit
69e8eac63d
2 changed files with 0 additions and 26 deletions
  1. 0 11
      src/Datasource/EntityTrait.php
  2. 0 15
      tests/TestCase/ORM/EntityTest.php

+ 0 - 11
src/Datasource/EntityTrait.php

@@ -531,17 +531,6 @@ trait EntityTrait
     }
 
     /**
-     * Gets the list of visible fields.
-     *
-     * @deprecated 4.0.0 Use getVisible() instead. Will be removed in 5.0.
-     * @return string[]
-     */
-    public function visibleProperties(): array
-    {
-        return $this->getVisible();
-    }
-
-    /**
      * Returns an array with all the fields that have been set
      * to this entity
      *

+ 0 - 15
tests/TestCase/ORM/EntityTest.php

@@ -1178,21 +1178,6 @@ class EntityTest extends TestCase
     }
 
     /**
-     * Tests the deprecated visibleProperties() method
-     *
-     * @return void
-     */
-    public function testVisiblePropertiesDeprecated()
-    {
-        $entity = new Entity();
-        $entity->foo = 'foo';
-        $entity->bar = 'bar';
-
-        $expected = $entity->visibleProperties();
-        $this->assertSame(['foo', 'bar'], $expected);
-    }
-
-    /**
      * Tests setting virtual properties with merging.
      *
      * @return void