test dns entry string without any whitespaces/tabs/etc.
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user