mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 17:10:05 +01:00
Update DnsMasqTest.php
This commit is contained in:
@@ -39,10 +39,10 @@ public function test_install_installs_and_places_configuration_files_in_proper_l
|
|||||||
$dnsMasq->configPath = __DIR__.'/output/dnsmasq.conf';
|
$dnsMasq->configPath = __DIR__.'/output/dnsmasq.conf';
|
||||||
$dnsMasq->resolverPath = __DIR__.'/output/resolver';
|
$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('nameserver 127.0.0.1'.PHP_EOL, file_get_contents(__DIR__.'/output/resolver/test'));
|
||||||
$this->assertSame('address=/.localhost/127.0.0.1'.PHP_EOL, file_get_contents(__DIR__.'/output/custom-dnsmasq.conf'));
|
$this->assertSame('address=/.test/127.0.0.1'.PHP_EOL, file_get_contents(__DIR__.'/output/custom-dnsmasq.conf'));
|
||||||
$this->assertSame('test-contents
|
$this->assertSame('test-contents
|
||||||
|
|
||||||
conf-file='.__DIR__.'/output/custom-dnsmasq.conf
|
conf-file='.__DIR__.'/output/custom-dnsmasq.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user