mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Removed Udp spec for connectable
This commit is contained in:
@@ -21,6 +21,5 @@ class UdpAdapterSpec extends ObjectBehavior
|
||||
function it_should_implement_adapter_interface()
|
||||
{
|
||||
$this->shouldImplement("InfluxDB\Adapter\AdapterInterface");
|
||||
$this->shouldImplement("InfluxDB\Adapter\ConnectableInterface");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,28 +20,6 @@ class ClientSpec extends ObjectBehavior
|
||||
$this->shouldHaveType('InfluxDB\Client');
|
||||
}
|
||||
|
||||
function it_should_be_connectable(ConnectableInterface $adapter)
|
||||
{
|
||||
$adapter->connect()->willReturn(true)->shouldBeCalledTimes(1);
|
||||
|
||||
$this->setAdapter($adapter);
|
||||
$this->connect()->shouldReturn(true);
|
||||
}
|
||||
|
||||
function it_should_be_disconnectable(ConnectableInterface $adapter)
|
||||
{
|
||||
$adapter->disconnect()->willReturn(true)->shouldBeCalledTimes(1);
|
||||
|
||||
$this->setAdapter($adapter);
|
||||
$this->disconnect()->shouldReturn(true);
|
||||
}
|
||||
|
||||
function it_should_not_call_connect(AdapterInterface $adapter)
|
||||
{
|
||||
$this->setAdapter($adapter);
|
||||
$this->connect()->shouldReturn(false);
|
||||
}
|
||||
|
||||
function it_should_send_data(AdapterInterface $adapter)
|
||||
{
|
||||
$adapter->send([[
|
||||
|
||||
Reference in New Issue
Block a user