Skip to content

Commit 1db6fe5

Browse files
Igor MelnikovIgor Melnikov
authored andcommitted
Merge remote-tracking branch 'upstream/develop' into MAGETWO-53353-refactor-escaper
2 parents 596b84a + 211c668 commit 1db6fe5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

lib/internal/Magento/Framework/DB/Ddl/Trigger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function setTable($name)
187187
(string)new \Magento\Framework\Phrase('Trigger table name should be a string')
188188
);
189189
}
190-
$this->tableName = strtolower($name);
190+
$this->tableName = $name;
191191
return $this;
192192
}
193193

lib/internal/Magento/Framework/DB/Test/Unit/Ddl/TriggerTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ public function testSetTableWithException()
8181
$this->_object->setTable($tableName);
8282
}
8383

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+
8496
/**
8597
* Test case for getName()
8698
*

0 commit comments

Comments
 (0)