From 9a0c6929f0c9d91cff9c0db5cead784c03cbb710 Mon Sep 17 00:00:00 2001 From: Lasse Rafn Date: Sun, 1 Oct 2017 00:11:11 +0200 Subject: [PATCH] Update DnsMasqTest.php --- tests/DnsMasqTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/DnsMasqTest.php b/tests/DnsMasqTest.php index 84f48eb..84b2838 100644 --- a/tests/DnsMasqTest.php +++ b/tests/DnsMasqTest.php @@ -39,10 +39,10 @@ public function test_install_installs_and_places_configuration_files_in_proper_l $dnsMasq->configPath = __DIR__.'/output/dnsmasq.conf'; $dnsMasq->resolverPath = __DIR__.'/output/resolver'; - $dnsMasq->install('localhost'); + $dnsMasq->install('test'); - $this->assertSame('nameserver 127.0.0.1'.PHP_EOL, file_get_contents(__DIR__.'/output/resolver/localhost')); - $this->assertSame('address=/.localhost/127.0.0.1'.PHP_EOL, file_get_contents(__DIR__.'/output/custom-dnsmasq.conf')); + $this->assertSame('nameserver 127.0.0.1'.PHP_EOL, file_get_contents(__DIR__.'/output/resolver/test')); + $this->assertSame('address=/.test/127.0.0.1'.PHP_EOL, file_get_contents(__DIR__.'/output/custom-dnsmasq.conf')); $this->assertSame('test-contents conf-file='.__DIR__.'/output/custom-dnsmasq.conf