Removed IP test in custom fields since we are using laravel's IP validation now

This commit is contained in:
snipe 2016-03-28 21:53:36 -07:00
parent 093e4bbb73
commit 08c196872c

View file

@ -14,29 +14,6 @@ class CustomFieldTest extends \Codeception\TestCase\Test
$customfield = new CustomField();
}
public function testBadIP() {
$customfield = factory(CustomField::class, 'customfield-ip')->make();
$values = [
'name' => $customfield->name,
'format' => $customfield->format,
'element' => $customfield->element,
];
CustomField::create($values);
$this->assertFalse($customfield->check_format("300.2.3.4"));
}
public function testGoodIP() {
$customfield = factory(CustomField::class, 'customfield-ip')->make();
$values = [
'name' => $customfield->name,
'format' => $customfield->format,
'element' => $customfield->element,
];
CustomField::create($values);
$this->assertTrue($customfield->check_format("1.2.3.4"));
}
public function testFormat() {
$customfield = factory(CustomField::class, 'customfield-ip')->make();
$values = [