mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Cover missing class on factory method
This commit is contained in:
@@ -114,4 +114,16 @@ class ClientFactoryTest extends \PHPUnit_Framework_TestCase
|
||||
["InfluxDB\\Adapter\\GuzzleAdapter"],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException InvalidArgumentException
|
||||
*/
|
||||
public function testInvalidProviderThrowsException()
|
||||
{
|
||||
$client = ClientFactory::create([
|
||||
"adapter" => [
|
||||
"name" => "InvalidClass",
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user