Skip to content
This repository was archived by the owner on Dec 9, 2019. It is now read-only.

Commit f4fc747

Browse files
nickurtcpriego
authored andcommitted
[skip ci] changed the default tld from dev to test (cpriego#99)
1 parent 87a1b1a commit f4fc747

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

cli/Valet/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function createCertificatesDirectory()
123123
public function writeBaseConfiguration()
124124
{
125125
if (! $this->files->exists($this->path())) {
126-
$this->write(['domain' => 'dev', 'paths' => [], 'port' => '80']);
126+
$this->write(['domain' => 'test', 'paths' => [], 'port' => '80']);
127127
}
128128
}
129129

cli/Valet/DnsMasq.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private function mergeDns()
125125
*
126126
* @return void
127127
*/
128-
public function install($domain = 'dev')
128+
public function install($domain = 'test')
129129
{
130130
$this->dnsmasqSetup();
131131
$this->fixResolved();

cli/drivers/KirbyValetDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function isStaticFile($sitePath, $siteName, $uri)
4242
*/
4343
public function frontControllerPath($sitePath, $siteName, $uri)
4444
{
45-
// Needed to force Kirby to use *.dev to generate its URLs...
45+
// Needed to force Kirby to use *.test to generate its URLs...
4646
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
4747

4848
if (preg_match('/^\/panel/', $uri)) {

cli/drivers/Typo3ValetDriver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ public function frontControllerPath($sitePath, $siteName, $uri)
139139
}
140140

141141
/**
142-
* Direct access to installtool via domain.dev/typo3/install/ will be redirected to
143-
* sysext install script. domain.dev/typo3 will be redirected to /typo3/, because
142+
* Direct access to installtool via domain.test/typo3/install/ will be redirected to
143+
* sysext install script. domain.test/typo3 will be redirected to /typo3/, because
144144
* the generated JavaScript URIs on the login screen would be broken on /typo3.
145145
*
146146
* @param string $uri
@@ -173,7 +173,7 @@ private function serveScript($sitePath, $siteName, $uri)
173173
$docroot = $sitePath . $this->documentRoot;
174174
$abspath = $docroot . $uri;
175175

176-
$_SERVER['SERVER_NAME'] = $siteName . '.dev';
176+
$_SERVER['SERVER_NAME'] = $siteName . '.test';
177177
$_SERVER['DOCUMENT_ROOT'] = $docroot;
178178
$_SERVER['DOCUMENT_URI'] = $uri;
179179
$_SERVER['SCRIPT_FILENAME'] = $abspath;

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
Valet *Linux* is a Laravel development environment for Linux minimalists. No Vagrant, no `/etc/hosts` file. You can even share your sites publicly using local tunnels. _Yeah, we like it too._
1414

15-
Valet *Linux* configures your system to always run Nginx in the background when your machine starts. Then, using [DnsMasq](https://en.wikipedia.org/wiki/Dnsmasq), Valet proxies all requests on the `*.dev` domain to point to sites installed on your local machine.
15+
Valet *Linux* configures your system to always run Nginx in the background when your machine starts. Then, using [DnsMasq](https://en.wikipedia.org/wiki/Dnsmasq), Valet proxies all requests on the `*.test` domain to point to sites installed on your local machine.
1616

1717
In other words, a blazing fast Laravel development environment that uses roughly 7mb of RAM. Valet *Linux* isn't a complete replacement for Vagrant or Homestead, but provides a great alternative if you want flexible basics, prefer extreme speed, or are working on a machine with a limited amount of RAM.
1818

tests/Functional/InstallTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class InstallTest extends FunctionalTestCase
99
{
1010
public function test_valet_is_running_after_install()
1111
{
12-
$response = \Httpful\Request::get('http://test.dev')->send();
12+
$response = \Httpful\Request::get('http://test.test')->send();
1313

1414
$this->assertEquals(404, $response->code);
1515
$this->assertContains('Valet - Not Found', $response->body);

tests/Functional/LinkTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function test_valet_site_is_linked()
2525
// Call valet link command
2626
$this->valetCommand('link linked', $_SERVER['HOME'] . '/linked-directory');
2727

28-
$response = \Httpful\Request::get('http://linked.dev')->send();
28+
$response = \Httpful\Request::get('http://linked.test')->send();
2929

3030
$this->assertEquals(200, $response->code);
3131
$this->assertContains('Valet linked site', $response->body);
@@ -39,7 +39,7 @@ public function test_valet_site_is_unlinked()
3939
// Call valet unlink command
4040
$this->valetCommand('unlink linked', $_SERVER['HOME'] . '/linked-directory');
4141

42-
$response = \Httpful\Request::get('http://linked.dev')->send();
42+
$response = \Httpful\Request::get('http://linked.test')->send();
4343

4444
$this->assertEquals(404, $response->code);
4545
$this->assertContains('Valet - Not Found', $response->body);
@@ -53,7 +53,7 @@ public function test_valet_links()
5353
$response = $this->valetCommand('links');
5454

5555
$this->assertContains('linked', $response);
56-
$this->assertContains('http://linked.dev', $response);
56+
$this->assertContains('http://linked.test', $response);
5757
$this->assertContains($_SERVER['HOME'] . '/linked-directory', $response);
5858
// TODO: Test SSL output
5959
}

tests/Functional/ParkTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public function test_valet_can_be_parked()
3535
{
3636
$this->valetCommand('park', $_SERVER['HOME'] . '/Code');
3737

38-
$one = \Httpful\Request::get('http://one.dev')->send();
38+
$one = \Httpful\Request::get('http://one.test')->send();
3939
$this->assertEquals(200, $one->code);
4040
$this->assertContains('One', $one->body);
4141

42-
$two = \Httpful\Request::get('http://two.dev')->send();
42+
$two = \Httpful\Request::get('http://two.test')->send();
4343
$this->assertEquals(200, $two->code);
4444
$this->assertContains('Two', $two->body);
4545

46-
$spaces = \Httpful\Request::get('http://with-spaces.dev')->send();
46+
$spaces = \Httpful\Request::get('http://with-spaces.test')->send();
4747
$this->assertEquals(200, $spaces->code);
4848
$this->assertContains('With Spaces', $spaces->body);
4949
}
@@ -54,7 +54,7 @@ public function test_valet_can_forget_directory()
5454

5555
$this->valetCommand('forget', $_SERVER['HOME'] . '/Code');
5656

57-
$response = \Httpful\Request::get('http://one.dev')->send();
57+
$response = \Httpful\Request::get('http://one.test')->send();
5858

5959
$this->assertEquals(404, $response->code);
6060
$this->assertContains('Valet - Not Found', $response->body);

tests/Functional/SecureTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function test_valet_can_enable_https()
2828
{
2929
$this->valetCommand('secure', $_SERVER['HOME'] . '/valet-site');
3030

31-
$response = \Httpful\Request::get('https://valet-site.dev')->send();
31+
$response = \Httpful\Request::get('https://valet-site.test')->send();
3232

3333
$this->assertEquals(200, $response->code);
3434
$this->assertContains('Valet site', $response->body);
@@ -40,6 +40,6 @@ public function test_valet_can_disable_https()
4040

4141
$this->valetCommand('unsecure', $_SERVER['HOME'] . '/valet-site');
4242

43-
\Httpful\Request::get('https://valet-site.dev')->send();
43+
\Httpful\Request::get('https://valet-site.test')->send();
4444
}
4545
}

tests/Integration/DnsMasqTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function test_install_calls_the_right_methods_and_restarts()
3737
$dnsMasq = Mockery::mock(DnsMasq::class.'[dnsmasqSetup,createCustomConfigFile,fixResolved]', [$pm, $sm, $files, $cli]);
3838

3939
$dnsMasq->shouldReceive('dnsmasqSetup')->once();
40-
$dnsMasq->shouldReceive('createCustomConfigFile')->once()->with('dev');
40+
$dnsMasq->shouldReceive('createCustomConfigFile')->once()->with('test');
4141
$dnsMasq->shouldReceive('fixResolved')->once();
4242
$pm->shouldReceive('nmRestart')->once()->with($sm);
4343
$sm->shouldReceive('restart')->once()->with('dnsmasq');

0 commit comments

Comments
 (0)