From 073b6d04443cdc4f18bc7d5b23d603eb8804924e Mon Sep 17 00:00:00 2001 From: Joe <104938042+lrljoe@users.noreply.github.com> Date: Sun, 3 Sep 2023 20:32:49 +0100 Subject: [PATCH] Add setAdditionalSelects NonArray Test (#1338) --- tests/Traits/Helpers/ComponentHelpersTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Traits/Helpers/ComponentHelpersTest.php b/tests/Traits/Helpers/ComponentHelpersTest.php index 7f9063d74..947c5aab2 100644 --- a/tests/Traits/Helpers/ComponentHelpersTest.php +++ b/tests/Traits/Helpers/ComponentHelpersTest.php @@ -163,6 +163,16 @@ public function can_get_additional_selects(): void $this->assertEquals(['id', 'name'], $this->basicTable->getAdditionalSelects()); } + /** @test */ + public function can_get_additional_selects_nonarray(): void + { + $this->assertEquals([], $this->basicTable->getAdditionalSelects()); + + $this->basicTable->setAdditionalSelects('name'); + + $this->assertEquals(['name'], $this->basicTable->getAdditionalSelects()); + } + /** @test */ public function can_get_configurable_areas(): void {