File tree 2 files changed +11
-10
lines changed
MessageQueue/Test/Unit/Console
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,10 @@ public function getAliases()
59
59
public function apply ()
60
60
{
61
61
$ this ->dataSetup ->startSetup ();
62
+ $ setup = $ this ->dataSetup ;
63
+ $ connection = $ setup ->getConnection ();
62
64
63
- $ connection = $ this ->dataSetup ->getConnection ();
64
- $ attributeTable = $ connection ->getTableName ('eav_attribute ' );
65
+ $ attributeTable = $ setup ->getTable ('eav_attribute ' );
65
66
/** @var EavSetup $eavSetup */
66
67
$ eavSetup = $ this ->eavSetupFactory ->create (['setup ' => $ this ->dataSetup ]);
67
68
$ entityTypeId = $ eavSetup ->getEntityTypeId (Product::ENTITY );
@@ -74,8 +75,8 @@ public function apply()
74
75
->where ('frontend_input = ? ' , 'multiselect ' )
75
76
);
76
77
77
- $ varcharTable = $ connection -> getTableName ('catalog_product_entity_varchar ' );
78
- $ textTable = $ connection -> getTableName ('catalog_product_entity_text ' );
78
+ $ varcharTable = $ setup -> getTable ('catalog_product_entity_varchar ' );
79
+ $ textTable = $ setup -> getTable ('catalog_product_entity_text ' );
79
80
$ varcharTableDataSql = $ connection
80
81
->select ()
81
82
->from ($ varcharTable )
Original file line number Diff line number Diff line change @@ -102,12 +102,12 @@ protected function setUp(): void
102
102
*/
103
103
public function testExecute (
104
104
?string $ pidFilePath ,
105
- bool $ singleThread ,
106
- ?int $ multiProcess ,
107
- int $ lockExpects ,
108
- bool $ isLocked ,
109
- int $ unlockExpects ,
110
- int $ runProcessExpects ,
105
+ bool $ singleThread ,
106
+ ?int $ multiProcess ,
107
+ int $ lockExpects ,
108
+ bool $ isLocked ,
109
+ int $ unlockExpects ,
110
+ int $ runProcessExpects ,
111
111
int $ expectedReturn
112
112
): void {
113
113
$ areaCode = 'area_code ' ;
You can’t perform that action at this time.
0 commit comments