File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
lib/internal/Magento/Framework/DB Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ public function setTable($name)
187
187
(string )new \Magento \Framework \Phrase ('Trigger table name should be a string ' )
188
188
);
189
189
}
190
- $ this ->tableName = strtolower ( $ name) ;
190
+ $ this ->tableName = $ name ;
191
191
return $ this ;
192
192
}
193
193
Original file line number Diff line number Diff line change @@ -81,6 +81,18 @@ public function testSetTableWithException()
81
81
$ this ->_object ->setTable ($ tableName );
82
82
}
83
83
84
+ /**
85
+ * Test for table name setter
86
+ */
87
+ public function testSetTableName ()
88
+ {
89
+ $ names = ['PREFIX_table ' , 'prefix_table ' ];
90
+ foreach ($ names as $ name ) {
91
+ $ this ->_object ->setTable ($ name );
92
+ $ this ->assertEquals ($ name , $ this ->_object ->getTable ());
93
+ }
94
+ }
95
+
84
96
/**
85
97
* Test case for getName()
86
98
*
You can’t perform that action at this time.
0 commit comments