dennisdigital/behat-protocol

Provides steps to check the scheme used by HTTP resources

Maintainers

Package info

github.com/dennisinteractive/behat-protocol

Type:project

pkg:composer/dennisdigital/behat-protocol

Statistics

Installs: 10 612

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.7 2018-06-20 09:05 UTC

This package is auto-updated.

Last update: 2026-03-14 06:12:48 UTC


README

Provides steps to check the scheme used by HTTP resources

Provides the following step definitions

Then the response should not contain internal http urls
Then I should not see any internal http urls in JavaScript

Default behaviour

  • base_url will be checked

Configure in behat.yml

Add DennisDigital\Behat\Protocol\Context\ProtocolContext under Contexts

You can also configure extra internal hosts to check

DennisDigital\Behat\Protocol\Context\ProtocolContext:
  parameters:
    hosts:
      - www.example.com
      - images.example.com
      - cdn.example.com

Specify headers to be sent with each request

DennisDigital\Behat\Protocol\Context\ProtocolContext:
  parameters:
    headers:
      "X-Forwarded-Proto": https