\Tests\Unit\NetworkModule\EntitiesIPv4ConnectionTest

Tests for network connection entity

Summary

Methods
Properties
Constants
__construct()
testFromForm()
testFromNmCli()
testGetMethod()
testGetAddresses()
testGetGateway()
testGetDns()
testToForm()
testToNmCli()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : 

Sets up the test environment

Returns

testFromForm()

testFromForm() : 

Tests the function to set values from the network connection form

Returns

testFromNmCli()

testFromNmCli() : 

Tests the function to create a new IPv4 connection entity from nmcli connection configuration

Returns

testGetMethod()

testGetMethod() : 

Tests the function to get IPv4 connection method

Returns

testGetAddresses()

testGetAddresses() : 

Tests the function to get IPv4 addresses

Returns

testGetGateway()

testGetGateway() : 

Tests the function to get IPv4 gateway address

Returns

testGetDns()

testGetDns() : 

Tests the function to get IPv4 addresses of DNS servers

Returns

testToForm()

testToForm() : 

Tests the function to convert the IPv4 connection entity to an array for the form

Returns

testToNmCli()

testToNmCli() : 

Tests the function to convert IPv4 connection entity to nmcli configuration string

Returns