Skip to content

Commit

Permalink
Add Missing Test
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe committed Dec 16, 2024
1 parent 01b6824 commit d235860
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Unit/Views/ColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ public function test_cannot_collapse_on_tablet_and_mobile(): void
public function test_custom_sorting_pills_label_defaults_correctly(): void
{
$column = Column::make('Name', 'name');
$this->assertSame('Name', $column->getTitle());
$defaultString = __($this->basicTable->getLocalisationPath().'not_applicable');

$this->assertSame('A-Z', $column->getCustomSortingPillDirectionsLabel('asc'));
$this->assertSame('Z-A', $column->getCustomSortingPillDirectionsLabel('desc'));
$this->assertSame($defaultString, $column->getCustomSortingPillDirectionsLabel('faulty_string'));

}
}

0 comments on commit d235860

Please sign in to comment.