We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e608b33 commit 70894e4Copy full SHA for 70894e4
1 file changed
tests/Components/KeyTest.php
@@ -77,6 +77,24 @@ public function testParseKeyWithLengthWithoutOptionsWithOrder()
77
), $component->columns);
78
}
79
80
+ public function testParseKeyWithoutOptionsWithOrderLowercase()
81
+ {
82
+ $component = Key::parse(
83
+ new Parser(),
84
+ $this->getTokensList('KEY `alias_type_idx` (`alias_type` desc),')
85
+ );
86
+ $this->assertEquals('KEY', $component->type);
87
+ $this->assertEquals('alias_type_idx', $component->name);
88
+ $this->assertEquals(new OptionsArray(), $component->options);
89
+ $this->assertNull($component->expr);
90
+ $this->assertSame(array(
91
+ array(
92
+ 'name' => 'alias_type',
93
+ 'order' => 'DESC',
94
+ )
95
+ ), $component->columns);
96
+ }
97
+
98
public function testParseKeyWithoutOptionsWithOrder()
99
{
100
$component = Key::parse(
0 commit comments