Skip to content

Commit d235860

Browse files
committed
Add Missing Test
1 parent 01b6824 commit d235860

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/Unit/Views/ColumnTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ public function test_cannot_collapse_on_tablet_and_mobile(): void
118118
public function test_custom_sorting_pills_label_defaults_correctly(): void
119119
{
120120
$column = Column::make('Name', 'name');
121-
$this->assertSame('Name', $column->getTitle());
121+
$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+
122127
}
123128
}

0 commit comments

Comments
 (0)