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 01b6824 commit d235860Copy full SHA for d235860
tests/Unit/Views/ColumnTest.php
@@ -118,6 +118,11 @@ public function test_cannot_collapse_on_tablet_and_mobile(): void
118
public function test_custom_sorting_pills_label_defaults_correctly(): void
119
{
120
$column = Column::make('Name', 'name');
121
- $this->assertSame('Name', $column->getTitle());
+ $defaultString = __($this->basicTable->getLocalisationPath().'not_applicable');
122
+
123
+ $this->assertSame('A-Z', $column->getCustomSortingPillDirectionsLabel('asc'));
124
+ $this->assertSame('Z-A', $column->getCustomSortingPillDirectionsLabel('desc'));
125
+ $this->assertSame($defaultString, $column->getCustomSortingPillDirectionsLabel('faulty_string'));
126
127
}
128
0 commit comments