Skip to content

Commit d5a8ff4

Browse files
committed
Adjusted tests
1 parent 4f01684 commit d5a8ff4

File tree

24 files changed

+53
-53
lines changed

24 files changed

+53
-53
lines changed

testData/actions/generation/generator/CategoryAttributePropertySetupPatchGenerator/generateFile/AddTestAttributeCategoryAttribute.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ class AddTestAttributeCategoryAttribute implements DataPatchInterface
1414
/**
1515
* @var ModuleDataSetupInterface
1616
*/
17-
private $moduleDataSetup;
17+
private ModuleDataSetupInterface $moduleDataSetup;
1818

1919
/**
2020
* @var EavSetupFactory
2121
*/
22-
private $eavSetupFactory;
22+
private EavSetupFactory $eavSetupFactory;
2323

2424
/**
2525
* @param ModuleDataSetupInterface $moduleDataSetup

testData/actions/generation/generator/CustomerAttributeSetupPatchGenerator/generateMultiselectAttributeDataPatch/AddMultiselectTestCustomerAttribute.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ class AddMultiselectTestCustomerAttribute implements DataPatchInterface
1616
/**
1717
* @var ModuleDataSetupInterface
1818
*/
19-
private $moduleDataSetup;
19+
private ModuleDataSetupInterface $moduleDataSetup;
2020

2121
/**
2222
* @var EavSetupFactory
2323
*/
24-
private $eavSetupFactory;
24+
private EavSetupFactory $eavSetupFactory;
2525

2626
/**
2727
* @var Config
2828
*/
29-
private $eavConfig;
29+
private Config $eavConfig;
3030

3131
/**
3232
* @var Attribute
3333
*/
34-
private $attributeResource;
34+
private Attribute $attributeResource;
3535

3636
/**
3737
* @param ModuleDataSetupInterface $moduleDataSetup

testData/actions/generation/generator/DataModelGenerator/generateDataModelWithoutInterface/Sample.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class Sample extends DataObject
99
/**
1010
* String constants for property names.
1111
*/
12-
const ID_PROPERTY = "id_property";
13-
const SAMPLE_PROPERTY = "sample_property";
12+
public const ID_PROPERTY = "id_property";
13+
public const SAMPLE_PROPERTY = "sample_property";
1414

1515
/**
1616
* Getter for IdProperty.

testData/actions/generation/generator/DataModelInterfaceGenerator/generateDataModelInterface/SampleInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ interface SampleInterface
77
/**
88
* String constants for property names
99
*/
10-
const ID_PROPERTY = "id_property";
11-
const SAMPLE_PROPERTY = "sample_property";
10+
public const ID_PROPERTY = "id_property";
11+
public const SAMPLE_PROPERTY = "sample_property";
1212

1313
/**
1414
* Getter for IdProperty.

testData/actions/generation/generator/DeleteEntityCommandGenerator/generateDeleteEntityByIdCommandFile/DeleteByIdCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ class DeleteByIdCommand
1919
/**
2020
* @var LoggerInterface
2121
*/
22-
private $logger;
22+
private LoggerInterface $logger;
2323

2424
/**
2525
* @var BookModelFactory
2626
*/
27-
private $modelFactory;
27+
private BookModelFactory $modelFactory;
2828

2929
/**
3030
* @var BookResource
3131
*/
32-
private $resource;
32+
private BookResource $resource;
3333

3434
/**
3535
* @param LoggerInterface $logger

testData/actions/generation/generator/DeleteEntityGenerator/generateDeleteEntityFile/Delete.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class Delete extends Action implements HttpPostActionInterface, HttpGetActionInt
2323
*
2424
* @see _isAllowed()
2525
*/
26-
const ADMIN_RESOURCE = 'Foo_Bar::company_id';
26+
public const ADMIN_RESOURCE = 'Foo_Bar::company_id';
2727

2828
/**
2929
* @var DeleteByIdCommand
3030
*/
31-
private $deleteByIdCommand;
31+
private DeleteByIdCommand $deleteByIdCommand;
3232

3333
/**
3434
* @param Context $context

testData/actions/generation/generator/EditEntityActionGenerator/generateEditEntityActionFile/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Edit extends Action implements HttpGetActionInterface
1818
*
1919
* @see _isAllowed()
2020
*/
21-
const ADMIN_RESOURCE = 'Foo_Bar::management';
21+
public const ADMIN_RESOURCE = 'Foo_Bar::management';
2222

2323
/**
2424
* Edit Book action.

testData/actions/generation/generator/EntityDataMapperClassGenerator/generateEntityDataMapperFile/UnicornDataMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class UnicornDataMapper
1616
/**
1717
* @var UnicornDataInterfaceFactory
1818
*/
19-
private $entityDtoFactory;
19+
private UnicornDataInterfaceFactory $entityDtoFactory;
2020

2121
/**
2222
* @param UnicornDataInterfaceFactory $entityDtoFactory

testData/actions/generation/generator/FormGenericButtonBlockGenerator/generateFormGenericButtonBlockFile/GenericButton.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ class GenericButton
1414
/**
1515
* @var Context
1616
*/
17-
private $context;
17+
private Context $context;
1818

1919
/**
2020
* @var UrlInterface
2121
*/
22-
private $urlBuilder;
22+
private UrlInterface $urlBuilder;
2323

2424
/**
2525
* @param Context $context

testData/actions/generation/generator/GridActionColumnFileGenerator/generateGridActionColumnFile/BookBlockActions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BookBlockActions extends Column
2727
/**
2828
* @var UrlInterface
2929
*/
30-
private $urlBuilder;
30+
private UrlInterface $urlBuilder;
3131

3232
/**
3333
* @param ContextInterface $context

0 commit comments

Comments
 (0)