Skip to content

Commit 1e5d809

Browse files
committed
Add label fixes
1 parent d235860 commit 1e5d809

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/Unit/Views/ColumnTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,18 @@ public function test_cannot_collapse_on_tablet_and_mobile(): void
115115
$contents = $column->renderContents($rows->first());
116116
}
117117

118+
public function test_custom_sorting_pills_defaults_correctly(): void
119+
{
120+
$column = Column::make('Name', 'name');
121+
$defaultString = __($this->basicTable->getLocalisationPath().'not_applicable');
122+
123+
$this->assertSame('A-Z', $column->getCustomSortingPillDirections('asc'));
124+
$this->assertSame('Z-A', $column->getCustomSortingPillDirections('desc'));
125+
$this->assertSame($defaultString, $column->getCustomSortingPillDirections('faulty_string'));
126+
127+
}
128+
129+
118130
public function test_custom_sorting_pills_label_defaults_correctly(): void
119131
{
120132
$column = Column::make('Name', 'name');

0 commit comments

Comments
 (0)