diff --git a/src/Properties/Options/Groups/OptionsPropertyMainGroup.php b/src/Properties/Options/Groups/OptionsPropertyMainGroup.php index b414ba027c..eafa5d8d4a 100644 --- a/src/Properties/Options/Groups/OptionsPropertyMainGroup.php +++ b/src/Properties/Options/Groups/OptionsPropertyMainGroup.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyGroup; */ class OptionsPropertyMainGroup extends OptionsPropertyGroup { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'main'; - } } diff --git a/src/Properties/Options/Groups/OptionsPropertyRootGroup.php b/src/Properties/Options/Groups/OptionsPropertyRootGroup.php index db84a69eb2..e70a849f6f 100644 --- a/src/Properties/Options/Groups/OptionsPropertyRootGroup.php +++ b/src/Properties/Options/Groups/OptionsPropertyRootGroup.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyGroup; */ class OptionsPropertyRootGroup extends OptionsPropertyGroup { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'root'; - } } diff --git a/src/Properties/Options/Groups/OptionsPropertySubgroup.php b/src/Properties/Options/Groups/OptionsPropertySubgroup.php index 880667ddd8..b4465416ad 100644 --- a/src/Properties/Options/Groups/OptionsPropertySubgroup.php +++ b/src/Properties/Options/Groups/OptionsPropertySubgroup.php @@ -13,20 +13,6 @@ use PhpMyAdmin\Properties\PropertyItem; class OptionsPropertySubgroup extends OptionsPropertyGroup { private PropertyItem|null $subgroupHeader = null; - /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ - - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'subgroup'; - } public function getSubgroupHeader(): PropertyItem|null { diff --git a/src/Properties/Options/Items/BoolPropertyItem.php b/src/Properties/Options/Items/BoolPropertyItem.php index aa37ea8077..ad04cc8ff4 100644 --- a/src/Properties/Options/Items/BoolPropertyItem.php +++ b/src/Properties/Options/Items/BoolPropertyItem.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem; */ class BoolPropertyItem extends OptionsPropertyOneItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'bool'; - } } diff --git a/src/Properties/Options/Items/DocPropertyItem.php b/src/Properties/Options/Items/DocPropertyItem.php index 1c73b12829..d03eaddf45 100644 --- a/src/Properties/Options/Items/DocPropertyItem.php +++ b/src/Properties/Options/Items/DocPropertyItem.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem; */ class DocPropertyItem extends OptionsPropertyOneItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'doc'; - } } diff --git a/src/Properties/Options/Items/HiddenPropertyItem.php b/src/Properties/Options/Items/HiddenPropertyItem.php index 10eb1aa79d..6620d451fb 100644 --- a/src/Properties/Options/Items/HiddenPropertyItem.php +++ b/src/Properties/Options/Items/HiddenPropertyItem.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem; */ class HiddenPropertyItem extends OptionsPropertyOneItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'hidden'; - } } diff --git a/src/Properties/Options/Items/MessageOnlyPropertyItem.php b/src/Properties/Options/Items/MessageOnlyPropertyItem.php index 1af7f4c36f..1f8ed8b657 100644 --- a/src/Properties/Options/Items/MessageOnlyPropertyItem.php +++ b/src/Properties/Options/Items/MessageOnlyPropertyItem.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem; */ class MessageOnlyPropertyItem extends OptionsPropertyOneItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'messageOnly'; - } } diff --git a/src/Properties/Options/Items/NumberPropertyItem.php b/src/Properties/Options/Items/NumberPropertyItem.php index 0166ea41b7..5722232964 100644 --- a/src/Properties/Options/Items/NumberPropertyItem.php +++ b/src/Properties/Options/Items/NumberPropertyItem.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem; */ class NumberPropertyItem extends OptionsPropertyOneItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'number'; - } } diff --git a/src/Properties/Options/Items/RadioPropertyItem.php b/src/Properties/Options/Items/RadioPropertyItem.php index e2505741e8..fb06a7546e 100644 --- a/src/Properties/Options/Items/RadioPropertyItem.php +++ b/src/Properties/Options/Items/RadioPropertyItem.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem; */ class RadioPropertyItem extends OptionsPropertyOneItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'radio'; - } } diff --git a/src/Properties/Options/Items/SelectPropertyItem.php b/src/Properties/Options/Items/SelectPropertyItem.php index 4f9b866f3a..c88a16f38c 100644 --- a/src/Properties/Options/Items/SelectPropertyItem.php +++ b/src/Properties/Options/Items/SelectPropertyItem.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem; */ class SelectPropertyItem extends OptionsPropertyOneItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'select'; - } } diff --git a/src/Properties/Options/Items/TextPropertyItem.php b/src/Properties/Options/Items/TextPropertyItem.php index 550e958729..c87d0c0648 100644 --- a/src/Properties/Options/Items/TextPropertyItem.php +++ b/src/Properties/Options/Items/TextPropertyItem.php @@ -11,16 +11,4 @@ use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem; */ class TextPropertyItem extends OptionsPropertyOneItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", - * "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" - * or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'text'; - } } diff --git a/src/Properties/Options/OptionsPropertyItem.php b/src/Properties/Options/OptionsPropertyItem.php index c9c43e66e0..0286db0f1e 100644 --- a/src/Properties/Options/OptionsPropertyItem.php +++ b/src/Properties/Options/OptionsPropertyItem.php @@ -55,12 +55,4 @@ abstract class OptionsPropertyItem extends PropertyItem { $this->force = $force; } - - /** - * Returns the property type ( either "options", or "plugin" ). - */ - public function getPropertyType(): string - { - return 'options'; - } } diff --git a/src/Properties/Plugins/ExportPluginProperties.php b/src/Properties/Plugins/ExportPluginProperties.php index 5b21254cda..060435e117 100644 --- a/src/Properties/Plugins/ExportPluginProperties.php +++ b/src/Properties/Plugins/ExportPluginProperties.php @@ -19,17 +19,6 @@ class ExportPluginProperties extends PluginPropertyItem */ private bool $forceFile = false; - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'export'; - } - /** * Gets the force file parameter */ diff --git a/src/Properties/Plugins/ImportPluginProperties.php b/src/Properties/Plugins/ImportPluginProperties.php index 5124a74036..3499a51761 100644 --- a/src/Properties/Plugins/ImportPluginProperties.php +++ b/src/Properties/Plugins/ImportPluginProperties.php @@ -12,17 +12,6 @@ namespace PhpMyAdmin\Properties\Plugins; */ class ImportPluginProperties extends PluginPropertyItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'import'; - } - public function getForceFile(): bool { return true; diff --git a/src/Properties/Plugins/PluginPropertyItem.php b/src/Properties/Plugins/PluginPropertyItem.php index 2712fabe3f..b2c703293c 100644 --- a/src/Properties/Plugins/PluginPropertyItem.php +++ b/src/Properties/Plugins/PluginPropertyItem.php @@ -75,14 +75,6 @@ abstract class PluginPropertyItem extends PropertyItem $this->mimeType = $mimeType; } - /** - * Returns the property type ( either "options", or "plugin" ). - */ - public function getPropertyType(): string - { - return 'plugin'; - } - /** * Whether each plugin has to be saved as a file */ diff --git a/src/Properties/Plugins/SchemaPluginProperties.php b/src/Properties/Plugins/SchemaPluginProperties.php index 0bed062d4c..a37dbaa5f2 100644 --- a/src/Properties/Plugins/SchemaPluginProperties.php +++ b/src/Properties/Plugins/SchemaPluginProperties.php @@ -12,17 +12,6 @@ namespace PhpMyAdmin\Properties\Plugins; */ class SchemaPluginProperties extends PluginPropertyItem { - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - public function getItemType(): string - { - return 'schema'; - } - public function getForceFile(): bool { return true; diff --git a/src/Properties/PropertyItem.php b/src/Properties/PropertyItem.php index eb7dc29421..4d475ebf8b 100644 --- a/src/Properties/PropertyItem.php +++ b/src/Properties/PropertyItem.php @@ -12,16 +12,4 @@ namespace PhpMyAdmin\Properties; */ abstract class PropertyItem { - /** - * Returns the property type ( either "Options", or "Plugin" ). - */ - abstract public function getPropertyType(): string; - - /** - * Returns the property item type of either an instance of - * - PhpMyAdmin\Properties\Options\OptionsPropertyOneItem ( f.e. "bool", "text", "radio", etc ) or - * - PhpMyAdmin\Properties\Options\OptionsPropertyGroup ( "root", "main" or "subgroup" ) - * - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" ) - */ - abstract public function getItemType(): string; } diff --git a/tests/unit/Properties/Options/Groups/OptionsPropertyMainGroupTest.php b/tests/unit/Properties/Options/Groups/OptionsPropertyMainGroupTest.php index f2f45ea0bd..05e8ed1c3e 100644 --- a/tests/unit/Properties/Options/Groups/OptionsPropertyMainGroupTest.php +++ b/tests/unit/Properties/Options/Groups/OptionsPropertyMainGroupTest.php @@ -32,12 +32,4 @@ class OptionsPropertyMainGroupTest extends AbstractTestCase unset($this->object); } - - public function testGetItemType(): void - { - self::assertSame( - 'main', - $this->object->getItemType(), - ); - } } diff --git a/tests/unit/Properties/Options/Groups/OptionsPropertyRootGroupTest.php b/tests/unit/Properties/Options/Groups/OptionsPropertyRootGroupTest.php index eb0c6826bc..e7a2dd2d01 100644 --- a/tests/unit/Properties/Options/Groups/OptionsPropertyRootGroupTest.php +++ b/tests/unit/Properties/Options/Groups/OptionsPropertyRootGroupTest.php @@ -33,14 +33,6 @@ class OptionsPropertyRootGroupTest extends AbstractTestCase unset($this->object); } - public function testGetItemType(): void - { - self::assertSame( - 'root', - $this->object->getItemType(), - ); - } - /** * Test for contable interface */ diff --git a/tests/unit/Properties/Options/Groups/OptionsPropertySubgroupTest.php b/tests/unit/Properties/Options/Groups/OptionsPropertySubgroupTest.php index c6ac44a2c1..1b6a23b384 100644 --- a/tests/unit/Properties/Options/Groups/OptionsPropertySubgroupTest.php +++ b/tests/unit/Properties/Options/Groups/OptionsPropertySubgroupTest.php @@ -33,14 +33,6 @@ class OptionsPropertySubgroupTest extends AbstractTestCase unset($this->object); } - public function testGetItemType(): void - { - self::assertSame( - 'subgroup', - $this->object->getItemType(), - ); - } - /** * Test for * - PhpMyAdmin\Properties\Options\Groups\OptionsPropertySubgroup::getSubgroupHeader diff --git a/tests/unit/Properties/Options/Items/PropertyItemsTest.php b/tests/unit/Properties/Options/Items/PropertyItemsTest.php index 18ccd44de4..985e6bce70 100644 --- a/tests/unit/Properties/Options/Items/PropertyItemsTest.php +++ b/tests/unit/Properties/Options/Items/PropertyItemsTest.php @@ -5,12 +5,6 @@ declare(strict_types=1); namespace PhpMyAdmin\Tests\Properties\Options\Items; use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem; -use PhpMyAdmin\Properties\Options\Items\DocPropertyItem; -use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem; -use PhpMyAdmin\Properties\Options\Items\MessageOnlyPropertyItem; -use PhpMyAdmin\Properties\Options\Items\RadioPropertyItem; -use PhpMyAdmin\Properties\Options\Items\SelectPropertyItem; -use PhpMyAdmin\Properties\Options\Items\TextPropertyItem; use PhpMyAdmin\Tests\AbstractTestCase; use PHPUnit\Framework\Attributes\CoversNothing; @@ -50,74 +44,4 @@ class PropertyItemsTest extends AbstractTestCase $object->getName(), ); } - - public function testBoolGetItemType(): void - { - $object = new BoolPropertyItem(); - - self::assertSame( - 'bool', - $object->getItemType(), - ); - } - - public function testGetItemTypeDoc(): void - { - $object = new DocPropertyItem(); - - self::assertSame( - 'doc', - $object->getItemType(), - ); - } - - public function testGetItemTypeHidden(): void - { - $object = new HiddenPropertyItem(); - - self::assertSame( - 'hidden', - $object->getItemType(), - ); - } - - public function testGetItemTypeMessageOnly(): void - { - $object = new MessageOnlyPropertyItem(); - - self::assertSame( - 'messageOnly', - $object->getItemType(), - ); - } - - public function testGetItemTypeRadio(): void - { - $object = new RadioPropertyItem(); - - self::assertSame( - 'radio', - $object->getItemType(), - ); - } - - public function testGetItemTypeSelect(): void - { - $object = new SelectPropertyItem(); - - self::assertSame( - 'select', - $object->getItemType(), - ); - } - - public function testGetItemTypeText(): void - { - $object = new TextPropertyItem(); - - self::assertSame( - 'text', - $object->getItemType(), - ); - } } diff --git a/tests/unit/Properties/Options/OptionsPropertyGroupTest.php b/tests/unit/Properties/Options/OptionsPropertyGroupTest.php index c0d3340634..6022177558 100644 --- a/tests/unit/Properties/Options/OptionsPropertyGroupTest.php +++ b/tests/unit/Properties/Options/OptionsPropertyGroupTest.php @@ -22,9 +22,7 @@ class OptionsPropertyGroupTest extends AbstractTestCase { parent::setUp(); - $this->stub = $this->getMockBuilder(OptionsPropertyGroup::class) - ->onlyMethods(['getItemType']) - ->getMock(); + $this->stub = $this->getMockBuilder(OptionsPropertyGroup::class)->onlyMethods([])->getMock(); } /** diff --git a/tests/unit/Properties/Options/OptionsPropertyItemTest.php b/tests/unit/Properties/Options/OptionsPropertyItemTest.php index 0a75be25fe..3813f863f4 100644 --- a/tests/unit/Properties/Options/OptionsPropertyItemTest.php +++ b/tests/unit/Properties/Options/OptionsPropertyItemTest.php @@ -21,9 +21,7 @@ class OptionsPropertyItemTest extends AbstractTestCase { parent::setUp(); - $this->stub = $this->getMockBuilder(OptionsPropertyItem::class) - ->onlyMethods(['getItemType']) - ->getMock(); + $this->stub = $this->getMockBuilder(OptionsPropertyItem::class)->onlyMethods([])->getMock(); } /** @@ -80,12 +78,4 @@ class OptionsPropertyItemTest extends AbstractTestCase $this->stub->getForce(), ); } - - public function testGetPropertyType(): void - { - self::assertSame( - 'options', - $this->stub->getPropertyType(), - ); - } } diff --git a/tests/unit/Properties/Options/OptionsPropertyOneItemTest.php b/tests/unit/Properties/Options/OptionsPropertyOneItemTest.php index c6a7b9d8c0..41b3e0284d 100644 --- a/tests/unit/Properties/Options/OptionsPropertyOneItemTest.php +++ b/tests/unit/Properties/Options/OptionsPropertyOneItemTest.php @@ -21,9 +21,7 @@ class OptionsPropertyOneItemTest extends AbstractTestCase { parent::setUp(); - $this->stub = $this->getMockBuilder(OptionsPropertyOneItem::class) - ->onlyMethods(['getItemType']) - ->getMock(); + $this->stub = $this->getMockBuilder(OptionsPropertyOneItem::class)->onlyMethods([])->getMock(); } /** diff --git a/tests/unit/Properties/Plugins/ExportPluginPropertiesTest.php b/tests/unit/Properties/Plugins/ExportPluginPropertiesTest.php index 3d73199e8c..b74b3b0fff 100644 --- a/tests/unit/Properties/Plugins/ExportPluginPropertiesTest.php +++ b/tests/unit/Properties/Plugins/ExportPluginPropertiesTest.php @@ -33,14 +33,6 @@ class ExportPluginPropertiesTest extends AbstractTestCase unset($this->object); } - public function testGetItemType(): void - { - self::assertSame( - 'export', - $this->object->getItemType(), - ); - } - /** * Test for * - PhpMyAdmin\Properties\Plugins\ExportPluginProperties::getForceFile diff --git a/tests/unit/Properties/Plugins/ImportPluginPropertiesTest.php b/tests/unit/Properties/Plugins/ImportPluginPropertiesTest.php index 60e6319664..e8642e8249 100644 --- a/tests/unit/Properties/Plugins/ImportPluginPropertiesTest.php +++ b/tests/unit/Properties/Plugins/ImportPluginPropertiesTest.php @@ -33,14 +33,6 @@ class ImportPluginPropertiesTest extends AbstractTestCase unset($this->object); } - public function testGetItemType(): void - { - self::assertSame( - 'import', - $this->object->getItemType(), - ); - } - /** * Test for * - PhpMyAdmin\Properties\Plugins\ImportPluginProperties::getOptionsText diff --git a/tests/unit/Properties/Plugins/PluginPropertyItemTest.php b/tests/unit/Properties/Plugins/PluginPropertyItemTest.php index 7014e9b897..2eac1f2368 100644 --- a/tests/unit/Properties/Plugins/PluginPropertyItemTest.php +++ b/tests/unit/Properties/Plugins/PluginPropertyItemTest.php @@ -20,9 +20,7 @@ class PluginPropertyItemTest extends AbstractTestCase { parent::setUp(); - $this->stub = $this->getMockBuilder(PluginPropertyItem::class) - ->onlyMethods(['getItemType']) - ->getMock(); + $this->stub = new PluginPropertyItem(); } /** @@ -34,12 +32,4 @@ class PluginPropertyItemTest extends AbstractTestCase unset($this->stub); } - - public function testGetPropertyType(): void - { - self::assertSame( - 'plugin', - $this->stub->getPropertyType(), - ); - } } diff --git a/tests/unit/Properties/PropertyItemTest.php b/tests/unit/Properties/PropertyItemTest.php index b0058d97ad..545c06d447 100644 --- a/tests/unit/Properties/PropertyItemTest.php +++ b/tests/unit/Properties/PropertyItemTest.php @@ -21,9 +21,7 @@ class PropertyItemTest extends AbstractTestCase { parent::setUp(); - $this->stub = $this->getMockBuilder(PropertyItem::class) - ->onlyMethods(['getItemType', 'getPropertyType']) - ->getMock(); + $this->stub = $this->getMockBuilder(PropertyItem::class)->getMock(); } /**