Skip to content

Commit

Permalink
Add test for setShouldBeHidden and setShouldBeDisplayed
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe committed Sep 12, 2024
1 parent 7a3ace3 commit 1ace5b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Traits/Configuration/ComponentConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,4 +455,13 @@ public function test_can_set_collapsing_column_button_expand_attributes(): void
$this->assertSame(['default-styling' => true, 'default-colors' => true], $this->basicTable->getCollapsingColumnButtonCollapseAttributes());

}

public function test_can_get_set_should_be_displayed(): void
{
$this->assertTrue($this->basicTable->getShouldBeDisplayed());
$this->basicTable->setShouldBeHidden();
$this->assertFalse($this->basicTable->getShouldBeDisplayed());
$this->basicTable->setShouldBeDisplayed();
$this->assertTrue($this->basicTable->getShouldBeDisplayed());
}
}

0 comments on commit 1ace5b6

Please sign in to comment.