diff --git a/composer.json b/composer.json index 4d4e090..fa57a39 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,7 @@ }, "require-dev": { "barryvdh/laravel-ide-helper": "^2.9", + "brianium/paratest": "^6.2", "cloudcreativity/json-api-testing": "^3.2", "facade/ignition": "^2.5", "fakerphp/faker": "^1.9.1", diff --git a/composer.lock b/composer.lock index 496f1f6..9f1ca13 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "64a202ab01db24e7839dd482b395dedd", + "content-hash": "255676fcaebc985afbd2d8ff8072fb57", "packages": [ { "name": "asm89/stack-cors", @@ -7038,6 +7038,86 @@ }, "time": "2018-12-13T10:34:14+00:00" }, + { + "name": "brianium/paratest", + "version": "v6.2.0", + "source": { + "type": "git", + "url": "https://github.com/paratestphp/paratest.git", + "reference": "9a94366983ce32c7724fc92e3b544327d4adb9be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paratestphp/paratest/zipball/9a94366983ce32c7724fc92e3b544327d4adb9be", + "reference": "9a94366983ce32c7724fc92e3b544327d4adb9be", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-pcre": "*", + "ext-reflection": "*", + "ext-simplexml": "*", + "php": "^7.3 || ^8.0", + "phpunit/php-code-coverage": "^9.2.5", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-timer": "^5.0.3", + "phpunit/phpunit": "^9.5.1", + "sebastian/environment": "^5.1.3", + "symfony/console": "^4.4 || ^5.2", + "symfony/process": "^4.4 || ^5.2" + }, + "require-dev": { + "doctrine/coding-standard": "^8.2.0", + "ekino/phpstan-banned-code": "^0.3.1", + "ergebnis/phpstan-rules": "^0.15.3", + "ext-posix": "*", + "infection/infection": "^0.20.2", + "phpstan/phpstan": "^0.12.70", + "phpstan/phpstan-deprecation-rules": "^0.12.6", + "phpstan/phpstan-phpunit": "^0.12.17", + "phpstan/phpstan-strict-rules": "^0.12.9", + "squizlabs/php_codesniffer": "^3.5.8", + "symfony/filesystem": "^5.2.2", + "thecodingmachine/phpstan-strict-rules": "^0.12.1", + "vimeo/psalm": "^4.4.1" + }, + "bin": [ + "bin/paratest" + ], + "type": "library", + "autoload": { + "psr-4": { + "ParaTest\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Scaturro", + "email": "scaturrob@gmail.com", + "homepage": "http://brianscaturro.com", + "role": "Lead" + } + ], + "description": "Parallel testing for PHP", + "homepage": "https://github.com/paratestphp/paratest", + "keywords": [ + "concurrent", + "parallel", + "phpunit", + "testing" + ], + "support": { + "issues": "https://github.com/paratestphp/paratest/issues", + "source": "https://github.com/paratestphp/paratest/tree/v6.2.0" + }, + "time": "2021-01-29T15:25:31+00:00" + }, { "name": "cloudcreativity/json-api-testing", "version": "v3.2.0", diff --git a/tests/Feature/Http/Controllers/IngredientPickerControllerTest.php b/tests/Feature/Http/Controllers/IngredientPickerControllerTest.php index df1a705..fa257dd 100644 --- a/tests/Feature/Http/Controllers/IngredientPickerControllerTest.php +++ b/tests/Feature/Http/Controllers/IngredientPickerControllerTest.php @@ -28,7 +28,7 @@ class IngredientPickerControllerTest extends LoggedInTestCase // @todo Find a better way to ensure indexing. $this->artisan('scout:import App\\\Models\\\Food'); $this->artisan('scout:import App\\\Models\\\Recipe'); - sleep(2); + sleep(5); } private function buildUrl(array $parameters = []): string {