Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 577008b

Browse files
Merge pull request #7 from demartis/feature/behat
Feature/behat
2 parents 7e46e8e + c260480 commit 577008b

File tree

19 files changed

+1431
-309
lines changed

19 files changed

+1431
-309
lines changed

‎.env.test‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ KERNEL_CLASS='App\Kernel'
33
APP_SECRET='$ecretf0rt3st'
44
SYMFONY_DEPRECATIONS_HELPER=999999
55
PANTHER_APP_ENV=panther
6+
7+
BEHAT_BASE_URL=http://127.0.0.1:8000/index.php

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@
1717
php.ini
1818
docker/db/.data
1919
docker/.logs
20+
21+
###> friends-of-behat/symfony-extension ###
22+
/behat.yml
23+
###< friends-of-behat/symfony-extension ###

‎.travis.yml‎

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
language: php
22

3-
#cache:
4-
# directories:
5-
# - .phpunit
6-
# - $HOME/.composer/cache/files
3+
#services:
4+
# - docker
5+
# -
6+
7+
cache:
8+
directories:
9+
- $HOME/.composer/cache/files
10+
- $HOME/symfony-bridge/.phpunit
11+
12+
env:
13+
global:
14+
- PHPUNIT_FLAGS="-v"
15+
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
716

817
php:
918
- 7.2
@@ -13,9 +22,19 @@ php:
1322
before_script:
1423
- composer install
1524
- cp .env.dist .env
25+
- curl -sS https://get.symfony.com/cli/installer | bash
26+
- /home/travis/.symfony/bin/symfony version
27+
- /home/travis/.symfony/bin/symfony server:start --no-tls -d
28+
- bin/console doctrine:database:create --no-interaction
29+
- bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration
30+
# - docker-compose pull && docker-compose build && docker-compose up -d
31+
# - docker-compose ps
32+
# - docker-compose exec php-fpm php bin/console doctrine:database:create --no-interaction
33+
# - docker-compose exec php-fpm php bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration
1634

1735
script:
1836
- ./bin/phpunit
37+
- ./vendor/bin/behat
1938

2039

2140

‎behat.yml.dist‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
default:
2+
suites:
3+
default:
4+
contexts:
5+
- App\Tests\Behat\RestContext
6+
- App\Tests\Behat\DemoContext
7+
8+
extensions:
9+
FriendsOfBehat\SymfonyExtension: null

‎composer.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"ext-iconv": "*",
88
"ext-json": "*",
99
"friendsofsymfony/rest-bundle": "3.0.*",
10+
"guzzlehttp/guzzle": "^7.0",
1011
"handcraftedinthealps/rest-routing-bundle": "^1.0",
1112
"jms/serializer-bundle": "^3.5",
1213
"sensio/framework-extra-bundle": "^5.5",
@@ -21,6 +22,8 @@
2122
"willdurand/hateoas-bundle": "^2.1"
2223
},
2324
"require-dev": {
25+
"friends-of-behat/symfony-extension": "^2.1",
26+
"peekmo/jsonpath": "dev-master",
2427
"symfony/debug-pack": "^1.0",
2528
"symfony/maker-bundle": "^1.14",
2629
"symfony/test-pack": "^1.0"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /