Skip to content

Commit 53d10ed

Browse files
committed
Add test coverage
1 parent 706abb0 commit 53d10ed

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

app/code/Magento/Customer/Test/Unit/Model/Metadata/Form/MultilineTest.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,28 @@ public function validateValueLengthDataProvider()
9494
]
9595
);
9696
}
97+
98+
/**
99+
* @param array $value value to pass to compactValue()
100+
* @param string $expected expected output
101+
*
102+
* @dataProvider compactValueDataProvider
103+
*/
104+
public function testCompactValue($value, $expected)
105+
{
106+
$this->assertSame($expected, $this->getClass("line")->compactValue($value));
107+
}
108+
109+
/**
110+
* @return array
111+
*/
112+
public function compactValueDataProvider()
113+
{
114+
return [
115+
[
116+
["b"=>"element1", "a"=>"element2"],
117+
["element2\nelement1"],
118+
]
119+
];
120+
}
97121
}

0 commit comments

Comments
 (0)