\Tests\Unit\GatewayModule\ModelsVersionManagerTest

Tests for version manager

Summary

Methods
Properties
Constants
readJsonResponse()
testGetDaemonCli()
testGetDaemonCliVerbose()
testGetDaemonWs()
testGetDaemonNotInstalled()
testGetDaemonUnknown()
testGetWebapp()
testGetWebappVerbose()
No public properties found
DAEMON_API_REQUEST
DAEMON_VERSION
DAEMON_VERSION_CMD
DAEMON_VERSION_FULL
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

DAEMON_API_REQUEST

DAEMON_API_REQUEST = [mType => mngDaemon_Version, data => [returnVerbose => true]]

IQRF Gateway Daemon's API request

DAEMON_VERSION

DAEMON_VERSION = v2.1.0

IQRF Gateway Daemon's version

DAEMON_VERSION_CMD

DAEMON_VERSION_CMD = iqrfgd2 version

IQRF Gateway Daemon's version command

DAEMON_VERSION_FULL

DAEMON_VERSION_FULL = v2.1.0 2019-06-12T20:44:25

IQRF Gateway Daemon's version with build time

Methods

readJsonResponse()

readJsonResponse(  mType) : mixed||string|int

Reads the IQRF JSON API response

Parameters

mType

Message type

Returns

mixed||string|int —

IQRF JSON API response

testGetDaemonCli()

testGetDaemonCli() : 

Tests the function to get IQRF Gateway Daemon's version

Returns

testGetDaemonCliVerbose()

testGetDaemonCliVerbose() : 

Tests the function to get IQRF Gateway Daemon's version

Returns

testGetDaemonWs()

testGetDaemonWs() : 

Tests the function to get IQRF Gateway Daemon's version

Returns

testGetDaemonNotInstalled()

testGetDaemonNotInstalled() : 

Tests the function to get IQRF Gateway Daemon's version (IQRF Gateway Daemon is not installed)

Returns

testGetDaemonUnknown()

testGetDaemonUnknown() : 

Tests the function to get IQRF Gateway Daemon's version (unknown version)

Returns

testGetWebapp()

testGetWebapp() : 

Tests the function to get IQRF Gateway Webapp's version

Returns

testGetWebappVerbose()

testGetWebappVerbose() : 

Tests the function to get IQRF Gateway Webapp's version (verbose)

Returns