A free open source IT asset/license management system
Removed IP test in custom fields since we are using laravel's IP validation now
snipe08c196872c15
diff --git a/tests/unit/CustomFieldTest.php b/tests/unit/CustomFieldTest.phpindex fd165a3fd6..cef8c55534 100644--- a/tests/unit/CustomFieldTest.php+++ b/tests/unit/CustomFieldTest.php@@ -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 = [