-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fdddf16
commit 9bb7ed9
Showing
10 changed files
with
158 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.4 | ||
8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,19 +3,17 @@ | |
declare(strict_types=1); | ||
|
||
$header = <<<'HEADER' | ||
This file is part of Monsieur Biz' menu plugin for Sylius. | ||
This file is part of Monsieur Biz' Menu plugin for Sylius. | ||
(c) Monsieur Biz <[email protected]> | ||
For the full copyright and license information, please view the LICENSE | ||
For the full copyright and license information, please view the LICENSE.txt | ||
file that was distributed with this source code. | ||
HEADER; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
->exclude([ | ||
'tests/Application/var', | ||
'tests/Application/bin', | ||
'tests/Application/config', | ||
]); | ||
->exclude('tests/Application'); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Node | ||
|
||
Be sure you have node 14 on your machine. You can use NVM to easily switch versions. | ||
|
||
# Docker | ||
|
||
Be sure you have docker on your machine. | ||
|
||
# Symfony | ||
|
||
Be sure you have the Symfony binary on your machine. | ||
|
||
``` | ||
curl -sS https://get.symfony.com/cli/installer | bash | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Testing | ||
|
||
## Requirements | ||
|
||
You'll need: | ||
|
||
- PHP 7.4 minimum. | ||
- docker, for the database. | ||
- symfony CLI, to run the local server. | ||
- composer, to install PHP dependencies. | ||
- npm and yarn, to install ui dependencies and build the JS/CSS files. | ||
|
||
## Installation | ||
|
||
```bash | ||
make install | ||
``` | ||
|
||
This will run a Sylius app (the one in `tests/Application/`) with the plugin | ||
installed and all Sylius' sample data. It uses the symfony binary. | ||
|
||
## Usage | ||
|
||
### List all available commands | ||
|
||
```bash | ||
make help | ||
``` | ||
|
||
### Running minimum plugin tests | ||
|
||
- PHPUnit | ||
|
||
```bash | ||
make test.phpunit | ||
``` | ||
|
||
- PHP CS fixer | ||
|
||
```bash | ||
make test.phpcs | ||
``` | ||
|
||
> Tip: You can fix your code with `make test.phpcs.fix`! | ||
|
||
- PHPSpec | ||
|
||
```bash | ||
make test.phpspec | ||
``` | ||
|
||
- PHPStan | ||
|
||
```bash | ||
make test.phpstan | ||
``` | ||
|
||
> Tip: You can run all tests with `make test.all`! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3.8' | ||
services: | ||
database: | ||
image: mysql:8.0 | ||
ports: | ||
- 3306 | ||
environment: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 1 | ||
MYSQL_DATABASE: sylius | ||
volumes: | ||
- database:/var/lib/mysql | ||
|
||
mailer: | ||
image: monsieurbiz/mailcatcher | ||
ports: | ||
- 1025 | ||
- 1080 | ||
|
||
volumes: | ||
database: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
memory_limit=-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters