@@ -39,11 +39,13 @@ public function itDeterminesTheCorrectAmountOfUnitsDataProvider(): array
3939 awesomeservice.service active running
4040 nonservice.timer active running
4141 nonservice.socket active running
42+ nonservice.device active running
4243 nonservice.scope active running
4344 superservice.mount active running
4445 awesomeservice.mount active running
4546 nonservice.timer active running
4647 nonservice.socket active running
48+ nonservice.device active running
4749 nonservice.scope active running
4850 superservice.service active running
4951 awesomeservice.service active running
@@ -66,6 +68,11 @@ public function itDeterminesTheCorrectAmountOfUnitsDataProvider(): array
6668 'suffix ' => 'socket ' ,
6769 'amount ' => 2 ,
6870 ],
71+ [
72+ 'output ' => $ output ,
73+ 'suffix ' => 'device ' ,
74+ 'amount ' => 2 ,
75+ ],
6976 [
7077 'output ' => $ output ,
7178 'suffix ' => 'scope ' ,
@@ -108,11 +115,13 @@ public function itOnlyExtractsTheUnitNamesDataProvider(): array
108115 foo-bar.service Active running
109116 a-timer.timer Active running
110117 a-socket.socket Active running
118+ a-device.device Active running
111119 a-scope.scope Active running
112120 super.mount Active running
113121 awesome.mount Active running
114122 nonservice.timer Active running
115123 nonservice.socket Active running
124+ nonservice.device Active running
116125 nonservice.scope Active running
117126118127@@ -139,6 +148,14 @@ public function itOnlyExtractsTheUnitNamesDataProvider(): array
139148 'nonservice ' ,
140149 ],
141150 ],
151+ [
152+ 'output ' => $ output ,
153+ 'suffix ' => 'device ' ,
154+ 'units ' => [
155+ 'a-device ' ,
156+ 'nonservice ' ,
157+ ],
158+ ],
142159 [
143160 'output ' => $ output ,
144161 'suffix ' => 'socket ' ,
0 commit comments