mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
Updated function + added unit test
This commit is contained in:
parent
02ab4df54a
commit
f7c79307db
@ -80,8 +80,7 @@ class CommonFunctionsTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testRrdDescriptions()
|
||||
{
|
||||
$data = 'Toner S/N:CRUM-1';
|
||||
|
||||
$this->assertEquals('Toner S/N CRUM-1', safedescr($data));
|
||||
$data = 'Toner, S/N:CR_UM-1.';
|
||||
$this->assertEquals('Toner, S/N CR_UM-1.', safedescr($data));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user