fix too strict comparison for isemaildomain check in Dns-Zone generation; fixes #1003

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2021-12-27 15:38:59 +01:00
parent 5ccae3f9bb
commit 8f0f890145
2 changed files with 3 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ class DomainZonesTest extends TestCase
global $admin_userdata;
Settings::Set('system.dnsenabled', 1, true);
Settings::Set('system.mxservers', 'mx.hostname.tld', true);
// get customer
$json_result = Customers::getLocal($admin_userdata, array(
@@ -35,6 +36,7 @@ class DomainZonesTest extends TestCase
$result = json_decode($json_result, true)['data'];
$this->assertTrue(count($result) > 1);
$this->assertEquals('$ORIGIN test2.local.', $result[1]);
$this->assertEquals('@ 604800 IN MX 10 mx.hostname.tld.', $result[count($result)-2]);
}
/**