2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 09:55:38 +00:00
fhem-mirror/fhem/t/FHEM/98_PHC/20_Import.t
StefanStrobel 37d95d6e32 98_PHC: updated tests
git-svn-id: https://svn.fhem.de/fhem/trunk@26106 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2022-05-31 18:25:11 +00:00

24 lines
1.3 KiB
Perl

##############################################
# test parsing
##############################################
use strict;
use warnings;
use Test::More;
fhem ("set PHC importChannelList $attr{global}{modpath}/t/FHEM/98_PHC/Kanalliste1.xml");
is(FhemTestUtils_gotLog("Attr called with set PHC module009description EG 230 1"), 1, "description attr from module");
is(FhemTestUtils_gotLog("Attr called with set PHC channelEMD09i00description BWM Wand Arbeiten zum Garten hin"), 1, "description attr from input");
is(FhemTestUtils_gotLog("Attr called with set PHC channelJRM13o06description Zeitmessung Dimmer nach Leinwand"), 1, "description attr from timer");
is(FhemTestUtils_gotLog("Attr called with set PHC channelMFM24o01description Funkausgang - 01"), 1, "description attr from output");
fhem ("set PHC importChannelList $attr{global}{modpath}/t/FHEM/98_PHC/Kanalliste2.xml");
is(FhemTestUtils_gotLog("Attr called with set PHC channelEMD00i01description Wälzpumpe Warmwasser"), 1, "description attr from input");
is(FhemTestUtils_gotLog("Attr called with set PHC module001description Eingangsmodul 24V -01"), 1, "description attr from module");
is(FhemTestUtils_gotLog("Attr called with set PHC channelEMD00o00description LED Ausgang"), 1, "description attr from EMD output");
done_testing;
exit(0);
1;