1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +01:00

23 Commits

Author SHA1 Message Date
mattstauffer
9a4a7a1693 Fix code styling 2023-08-27 02:47:47 +00:00
Dries Vints
a0e1e02a47 Test Valet commands (#1256)
* First attempt at testing CLI commands

* Apply fixes from StyleCI

* Protect from running locally

* Fix test

* wip

* wip

* wip

* wip

* wip

* Update app.php

* Create config folder and files for CLI tests

* Apply fixes from StyleCI

* Fix some formatting

* Fix imports

* Update all output() calls to use the writer passed in by the command

Ugly capture of all $outputs from commands, by passing them into `writer()` to be bound into the container, where they can then be pulled out from calls to `output()` and its buddies `info()`, `table()`, and `warning()`.

* Apply fixes from StyleCI

* Flesh out park command test

* Apply fixes from StyleCI

* Drop php 7.0 and 7.1

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Matt Stauffer <matt@tighten.co>
2022-12-02 09:32:28 +01:00
StyleCI Bot
9b8c41e3d3 Apply fixes from StyleCI 2022-03-14 04:16:45 +00:00
Matt Stauffer
95aa03977c Add command to list isolated sites 2022-03-14 00:16:36 -04:00
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00:00
Mikaël Popowicz
a876175c6a ♻️ Refactoring resecureForNew* methods to resecureForNewConfiguration. 2021-02-23 22:32:50 +01:00
Mikaël Popowicz
2d5ee9d7cc Add loopback command. 2021-02-21 23:21:12 +01:00
Chris Brown
0b341a7ca1 Update test suite to phpunit 9.5
Update test suite to phpunit 9.5 syntax
Refactored to use polyfill for older PHP versions via `yoast/phpunit-polyfills`

Note: this includes 2 important differences from usual phpunit test suites:
- instead of extending `PHPUnit\Framework\TestCase` we extend `Yoast\PHPUnitPolyfills\TestCases\TestCase`
- instead of handling fixtures via `setUp()` and `tearDown()` we use `set_up()` and `tear_down()` respectively

Comment regarding formatting: I chose to use the FQDN in the `extends` syntax of the class declaration instead of using `use` so that it is more quickly apparent that we're doing something slightly different than usual phpunit syntax, particularly in regards to the set_up() / tear_down() methods that appear immediately following the `extends` line.
2020-11-29 12:10:05 -05:00
soilSpoon
2c06a5d4f0 Modify the paths of packages to be based on brew prefix
- brew
- dnsmasq
- nginx
- php-fpm
- log
- etc
2020-11-15 14:38:18 +09:00
Chris Brown
949e5d58e3 Update NginxTest.php
Fix misnamed test
2019-12-01 01:27:37 -05:00
Chris Brown
9f80751a59 Testing 7.4 2019-09-08 10:07:01 -04:00
Sahib J. Leo
001058414b #691 Surround with quotes all paths which might contain blank spaces. 2018-12-27 11:24:41 -05:00
Matt Stauffer
23e2eee8a1 Merge pull request #241 from drbyte/tld-alias-for-domain-command
Rename `valet domain` command to `valet tld`
2018-08-23 11:52:52 -04:00
Chris Brown
e5f9a6163a Merge branch 'master' into tld-alias-for-domain-command 2018-06-22 14:03:56 -04:00
Colin DeCarlo
20afe84f36 Move the helper functions into the Valet namespace 2018-06-20 16:01:37 -04:00
Gabriel Caruso
3d9f34bff5 Use assertContains 2017-12-08 20:28:54 -02:00
Chris Brown
58e4645fe2 Change valet domain command to valet tld
Fixes #144
".test" or ".dev" is really a TLD, not a "domain" in the conventional sense.
Changing the command to `valet tld` more accurately reflects the purpose of the command (to set or get the configured TLD served by Valet)

The use of `valet domain` is currently preserved as an alias for `valet tld`, but will be removed at a later date.
2017-10-17 15:47:39 -04:00
Lasse Rafn
ce735cc66f Update NginxTest.php 2017-10-01 00:11:30 +02:00
Lasse Rafn
18a6a519f1 Update NginxTest.php
.localhost default domain test NginxTest
2017-09-18 14:27:17 +02:00
Taylor Otwell
752f214ebb fix another test 2016-12-08 08:32:55 -05:00
Taylor Otwell
eb1a6b75f9 fix another test 2016-12-08 08:32:55 -05:00
Taylor Otwell
572227ae6c fix another test 2016-12-08 08:32:55 -05:00
Taylor Otwell
aa8ea8ecb5 workin gon tests 2016-12-08 08:32:55 -05:00