summaryrefslogtreecommitdiffstats
path: root/test/physical.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/physical.cpp')
-rw-r--r--test/physical.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/physical.cpp b/test/physical.cpp
index 897a43f..9312598 100644
--- a/test/physical.cpp
+++ b/test/physical.cpp
@@ -115,3 +115,13 @@ TEST(Physical, blink)
phosphor::led::Physical phy(bus, LED_OBJ, led);
phy.state(Action::Blink);
}
+
+TEST(Physical, ctor_none_trigger_asserted_brightness)
+{
+ sdbusplus::bus::bus bus = sdbusplus::bus::new_default();
+ NiceMock<MockLed> led;
+ EXPECT_CALL(led, getTrigger()).WillRepeatedly(Return("none"));
+ constexpr auto val = phosphor::led::ASSERT;
+ EXPECT_CALL(led, getBrightness()).WillRepeatedly(Return(val));
+ phosphor::led::Physical phy(bus, LED_OBJ, led);
+}
OpenPOWER on IntegriCloud