1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00

Update DnsMasqTest.php

.localhost default domain test
This commit is contained in:
Lasse Rafn
2017-09-18 14:26:34 +02:00
committed by GitHub
parent 18f05bca49
commit d5b4ee3e8f

View File

@@ -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('dev');
$dnsMasq->install('localhost');
$this->assertSame('nameserver 127.0.0.1'.PHP_EOL, file_get_contents(__DIR__.'/output/resolver/dev'));
$this->assertSame('address=/.dev/127.0.0.1'.PHP_EOL, file_get_contents(__DIR__.'/output/custom-dnsmasq.conf'));
$this->assertSame('address=/.localhost/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