This folder has all the working samples and code for the LinkedIn Learning course. To try them out, follow these instructions. They're slightly different than the README.md in the root directory.
Note: Other than copying the behat.dist.yml file. You should not have to modify any other files in this directory.
- Ensure you have PHP installed. This course was built on PHP 8.2.x installed via Homebrew on a Mac.
- Ensure you have Composer installed.
- Download or clone this repository.
- On your command line, move to this (the
api-testing-course) directory. - Install your environment via
./composer.phar installor equivalent depending on your Composer configuration. This will load Behat 3.12 and the Github SDK for you. - Copy
behat.dist.ymltobehat.yml - Create a Personal Access Token on Github via https://github.com/settings/tokens?type=beta giving it permission to
- User Permissions: Read and Write access to starring and watching
- Repository permissions: Read and Write access to administration
- Copy and paste the Personal Access Token into
behat.ymlfor thegithub_tokenparameter. - Run
vendor/bin/behatto run these tests