test dns entry string without any whitespaces/tabs/etc.

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2021-12-27 16:08:46 +01:00
parent 61265778a5
commit 5f41b37770

View File

@@ -36,7 +36,9 @@ 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]);
$resstr = preg_replace('/\s+/', '', $result[count($result)-2]);
$against = preg_replace('/\s+/', '', '@ 604800 IN MX 10 mx.hostname.tld.');
$this->assertEquals($against, $resstr);
}
/**