Skip to content

Commit

Permalink
Merge 8111499 into 3f45706
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Oct 21, 2021
2 parents 3f45706 + 8111499 commit a5cdf37
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -139,6 +139,23 @@ To get more details about an error, replace `--format=progress` by `-vvv`. You m

docker run -p 27017:27017 mongo:latest

Start by adding a fixture, usually using Doctrine entities in `tests/Fixtures/TestBundle/Entity`. Note that we often duplicate the fixture
in the `tests/Fixtures/TestBundle/Document` directory for MongoDB ODM, if your test doesn't need to be tested with MongoDB use the `@!mongodb` group on the Behat scenario.
If you need a `Given` step, add it to the doctrine context in `tests/Core/Behat/DoctrineContext.php`, for example:

```
/**
* @Given there is a payment
*/
public function thereIsAPayment()
{
$this->manager->persist(new Payment('123.45'));
$this->manager->flush();
}
```

The last step is to add you feature inside `features/`. You can add your test in one of our existing features, or create your own.

# License and Copyright Attribution

When you open a Pull Request to the API Platform project, you agree to license your code under the [MIT license](LICENSE)
Expand Down

0 comments on commit a5cdf37

Please sign in to comment.