Skip to content

Commit 2d8f6b8

Browse files
committed
Add update service, predicates and tests
1 parent d38249a commit 2d8f6b8

20 files changed

+2747
-43
lines changed

.env.test

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# define your env variables for the test env here
2+
KERNEL_CLASS='App\Kernel'
3+
APP_SECRET='$ecretf0rt3st'
4+
SYMFONY_DEPRECATIONS_HELPER=999999
5+
PANTHER_APP_ENV=panther
6+
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots

.gitignore

+10-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,13 @@
1010
###< symfony/framework-bundle ###
1111
.idea
1212
docker/.data
13-
files
13+
files
14+
###> symfony/phpunit-bridge ###
15+
.phpunit.result.cache
16+
/phpunit.xml
17+
###< symfony/phpunit-bridge ###
18+
19+
###> phpunit/phpunit ###
20+
/phpunit.xml
21+
.phpunit.result.cache
22+
###< phpunit/phpunit ###

bin/phpunit

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (!ini_get('date.timezone')) {
5+
ini_set('date.timezone', 'UTC');
6+
}
7+
8+
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
9+
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
10+
require PHPUNIT_COMPOSER_INSTALL;
11+
PHPUnit\TextUI\Command::main();
12+
} else {
13+
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
14+
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
15+
exit(1);
16+
}
17+
18+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
19+
}

composer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
},
7878
"require-dev": {
7979
"doctrine/doctrine-fixtures-bundle": "^3.4",
80-
"symfony/maker-bundle": "^1.36"
80+
"phpunit/phpunit": "^9.5",
81+
"symfony/browser-kit": "6.0.*",
82+
"symfony/css-selector": "6.0.*",
83+
"symfony/maker-bundle": "^1.36",
84+
"symfony/phpunit-bridge": "^6.0"
8185
}
8286
}

0 commit comments

Comments
 (0)