\Tests\Unit\IqrfNetModule\ModelsUploadManagerTest

Test for IQRF TR upload manager

Summary

Methods
Properties
Constants
readJsonResponse()
testUploadHex()
testUploadIqrf()
testUploadFileHex()
testUploadFileIqrf()
No public properties found
DATA_PATH
FILENAMES
UPLOAD_PATH
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

DATA_PATH

DATA_PATH = __DIR__ . /../../../data/upload/

Data dir path

FILENAMES

FILENAMES = [hex => CustomDpaHandler-Coordinator-FRCandSleep-7xD-V403-190612.hex, iqrf => DPA-Coordinator-SPI-7xD-V403-190612.iqrf]

File names

UPLOAD_PATH

UPLOAD_PATH = __DIR__ . /../../../temp/upload

Upload directory path

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

testUploadHex()

testUploadHex() : 

Tests the function to upload the file into IQRF TR module (HEX file format)

Returns

testUploadIqrf()

testUploadIqrf() : 

Tests the function to upload the file into IQRF TR module (IQRF file format)

Returns

testUploadFileHex()

testUploadFileHex() : 

Tests the function to upload the file into IQRF TR module (HEX file format)

Returns

testUploadFileIqrf()

testUploadFileIqrf() : 

Tests the function to upload the file into IQRF TR module (IQRF file format)

Returns