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

16 Commits

Author SHA1 Message Date
Matt Stauffer
e19afe51ad Clean up NullWriter; drop legacy config check 2022-12-22 00:27:09 -05: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
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00: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
Chris Brown
027812c25f Pre-create the parent .config dir if needed
On a fresh OSX install, the ~/.config/ dir doesn't always exist. This checks and creates it if needed.
2018-11-13 09:34:21 -05:00
Matt Stauffer
7eb1aec410 Merge pull request #449 from eberkund/master
Move ~/.valet to ~/.config/valet
2018-08-30 08:33:28 -04:00
Colin DeCarlo
20afe84f36 Move the helper functions into the Valet namespace 2018-06-20 16:01:37 -04:00
Matt Stauffer
6587fb53a5 Add 'trust' command 2018-01-04 16:36:16 -05:00
Erik Berkun-Drevnig
34ccf5c3dc Fix broken test 2017-10-01 22:09:05 -04:00
Taylor Otwell
a35b668aee working on tests 2016-12-08 08:32:55 -05:00
Jan Willem Kaper
bd024deebc onfigurationTest updated with test_log_directory_is_created_with_log_files_if_it_doesnt_exist() functions (second attempt) 2016-06-18 23:10:35 +02:00
Jan Willem Kaper
1d60c03214 Revert "ConfigurationTest updated with test_log_directory_is_created_with_log_files_if_it_doesnt_exist() function"
This reverts commit 215eec574e.
2016-06-18 23:09:19 +02:00
Jan Willem Kaper
215eec574e ConfigurationTest updated with test_log_directory_is_created_with_log_files_if_it_doesnt_exist() function 2016-06-18 23:06:49 +02:00
Taylor Otwell
14588a40d8 load extensions 2016-05-11 20:32:53 -05:00
Taylor Otwell
e25be02c69 fix tests user call 2016-05-08 23:37:01 -05:00
Taylor Otwell
354e1d4111 progress refactoring 2016-05-07 22:10:32 -05:00