add behat-rest-fr test flex 1

This commit is contained in:
TSOUZA
2020-10-31 17:06:31 +01:00
parent 3b3acb2d56
commit ad9cea8b2d
4 changed files with 0 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
default:
autoload:
'': '%paths.base%/tests/Behat/features'
suites:
default:
paths:
features: 'tests/Behat/features'
contexts:
- RestContextFr\RestContextFr
- Behat\MinkExtension\Context\MinkContext
- behatch:context:browser
- behatch:context:debug
- behatch:context:system
- behatch:context:json
- behatch:context:table
- behatch:context:rest
- behatch:context:xml
extensions:
Behat\Symfony2Extension:
kernel:
env: test
debug: true
bootstrap: config/bootstrap.php
path: src/Kernel.php
class: App\Kernel
Behat\MinkExtension:
base_url: "http://localhost/api"
sessions:
default:
symfony2: ~
Behatch\Extension: ~
@@ -0,0 +1,17 @@
services:
_defaults:
autowire: true
autoconfigure: true
RestContextFr\RestContextFr:
public: true
arguments:
$request: '@behatch.http_call.request'
$httpCallResultPool: '@behatch.http_call.result_pool'
behatch.http_call.request:
class: Behatch\HttpCall\Request
arguments:
- '@behat.mink'
public: false
behatch.http_call.result_pool:
class: Behatch\HttpCall\HttpCallResultPool
public: false
@@ -0,0 +1,12 @@
# This file contains a user story for demonstration only.
# Learn how to get started with Behat and BDD on Behat's website:
# http://behat.org/en/latest/quick_start.html
Feature:
In order to prove that the Behat Symfony extension is correctly installed
As a user
I want to have a demo scenario
Scenario: It receives a response from Symfony's kernel
When a demo scenario sends a request to "/"
Then the response should be received
+9
View File
@@ -0,0 +1,9 @@
{
"copy-from-recipe": {
"behat.yml.dist": "behat.yml.dist",
"config/": "%CONFIG_DIR%/",
"features/": "features/",
"tests/": "tests/"
},
"gitignore": ["/behat.yml"]
}