mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Removed client interface
This commit is contained in:
@@ -9,17 +9,12 @@ class ClientSpec extends ObjectBehavior
|
||||
{
|
||||
function let(\InfluxDB\Adapter\AdapterInterface $adapter)
|
||||
{
|
||||
$this->setAdapter($adapter);
|
||||
$this->setAdapter($adapter);
|
||||
}
|
||||
function it_is_initializable()
|
||||
{
|
||||
$this->shouldHaveType('InfluxDB\Client');
|
||||
}
|
||||
|
||||
function it_should_implement_client_interface()
|
||||
{
|
||||
$this->shouldImplement("InfluxDB\ClientInterface");
|
||||
}
|
||||
|
||||
function it_should_send_data(\InfluxDB\Adapter\AdapterInterface $adapter)
|
||||
{
|
||||
@@ -28,12 +23,12 @@ class ClientSpec extends ObjectBehavior
|
||||
"columns" => ["author", "title"],
|
||||
"points" => [
|
||||
["Guccini", "Autogrill"]
|
||||
]
|
||||
]
|
||||
]])->shouldBeCalledTimes(1);
|
||||
|
||||
$this->mark("video.search", [
|
||||
"author" => "Guccini",
|
||||
"title" => "Autogrill"
|
||||
]);
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace InfluxDB;
|
||||
|
||||
class Client implements ClientInterface
|
||||
class Client
|
||||
{
|
||||
private $adapter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user