indigophp / oro-behat-extension
Behat extension for Oro Platform
Installs: 209
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:behat-extension
Requires
- php: >=5.4
- behat/behat: ^3.0
- behat/symfony2-extension: ^2.1
- oro/platform: *
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: ^1.0
- phpspec/phpspec: ^2.4
This package is auto-updated.
Last update: 2021-11-24 09:11:18 UTC
README
Behat extension for Oro Platform.
Install
Via Composer
$ composer require indigophp/oro-behat-extension
Usage
This package provides some utilities to ease writting Functional Tests using Behat for Oro Platform based applications.
Supported features:
- Database Isolation*
- Database Reindex*
- Setting WSSE header
* Unlike the original Oro behavior, transaction start-rollback and reindexing are done per scenario, not per feature (test case)
First, you need to configure Behat and the Symfony2 Extension:
default: # ... extensions: Behat\Symfony2Extension: ~
After that, you need to configure a bundle and load the Oro Context:
default: suites: acme: type: symfony_bundle contexts: - Indigo\Oro\Behat\Context\OroContext - Acme\Bundle\AcmeBundle\Features\Context\FeatureContext bundle: AcmeBundle # ...
You can now write your features:
@dbIsolation
Feature: I do something
In order to something
As someone
I should be able to do that thing
@wsse
Scenario: I do the thing using the REST API
Given I am someone
When I do the thing using the REST API
Then the thing should have been done
@dbReindex
Scenario: I search for something
Given I am someone
When I search for something
Then I should see that thing
Testing
$ composer test
Contributing
Please see our contributing guide on developers.indigophp.com.
Security
If you discover any security related issues, please contact us at security@indigophp.com.
License
The MIT License (MIT). Please see License File for more information.