Skip to content

Commit

Permalink
Update dependency drevops/behat-phpserver to v2 (#141)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Jan 17, 2025
1 parent fefd5b7 commit 592c8aa
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 40 deletions.
16 changes: 0 additions & 16 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ You may optionally specify size of browser window in the screenshot step:
composer install
```

### Start Chrome container.

```bash
docker run -d -p 4444:4444 selenium/standalone-chromium:130.0
```

### Lint code

```bash
Expand All @@ -156,6 +150,8 @@ composer lint-fix

```bash
composer test-unit # Run unit tests.

docker run -d -p 4444:4444 selenium/standalone-chromium
composer test-bdd # Run BDD tests.
```

Expand Down
7 changes: 3 additions & 4 deletions behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ default:
- BehatCliContext
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
- DrevOps\BehatPhpServer\PhpServerContext:
- docroot: "%paths.base%/tests/behat/features/fixtures"
host: "0.0.0.0"
port: 8888
webroot: "%paths.base%/tests/behat/fixtures"
host: 0.0.0.0

extensions:
Behat\MinkExtension:
browserkit_http: ~
files_path: "%paths.base%/tests/behat/features/fixtures"
files_path: "%paths.base%/tests/behat/fixtures"
base_url: http://0.0.0.0:8888
browser_name: chrome
javascript_session: selenium2
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"behat/mink-browserkit-driver": "^2.2",
"dantleech/gherkin-lint": "^0.2.3",
"dealerdirect/phpcodesniffer-composer-installer": "^1",
"drevops/behat-phpserver": "^1.2",
"drevops/behat-phpserver": "^2.0",
"drupal/coder": "^8.3",
"dvdoug/behat-code-coverage": "^5.3",
"ergebnis/composer-normalize": "^2.44",
Expand Down
16 changes: 7 additions & 9 deletions tests/behat/bootstrap/BehatCliTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,10 @@ public function behatCliWriteBehatYml(): void {
default:
contexts:
- FeatureContextTest:
- screenshot_dir: "%paths.base%/screenshots"
- screenshot_dir: '%paths.base%/screenshots'
- DrevOps\BehatPhpServer\PhpServerContext:
- docroot: "%paths.base%/tests/behat/features/fixtures"
host: "0.0.0.0"
port: 8888
webroot: '%paths.base%/tests/behat/fixtures'
host: 0.0.0.0
extensions:
Behat\MinkExtension:
browserkit_http: ~
Expand All @@ -201,11 +200,10 @@ public function behatCliWriteScreenshotContextBehatYml(PyStringNode $value): voi
default:
contexts:
- FeatureContextTest:
- screenshot_dir: "%paths.base%/screenshots"
- screenshot_dir: '%paths.base%/screenshots'
- DrevOps\BehatPhpServer\PhpServerContext:
- docroot: "%paths.base%/tests/behat/features/fixtures"
host: "0.0.0.0"
port: 8888
webroot: '%paths.base%/tests/behat/fixtures'
host: 0.0.0.0
- DrevOps\BehatScreenshotExtension\Context\ScreenshotContext
extensions:
Behat\MinkExtension:
Expand All @@ -227,7 +225,7 @@ public function behatCliWriteScreenshotContextBehatYml(PyStringNode $value): voi
* @Given screenshot fixture
*/
public function behatCliWriteScreenshotFixture(): void {
$filename = 'tests/behat/features/fixtures/screenshot.html';
$filename = 'tests/behat/fixtures/screenshot.html';

$content = <<<'EOL'
<!DOCTYPE html>
Expand Down
7 changes: 3 additions & 4 deletions tests/behat/features/behatcli.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ Feature: Behat CLI context
contexts:
- FeatureContextTest
- DrevOps\BehatPhpServer\PhpServerContext:
- docroot: "%paths.base%/tests/behat/features/fixtures"
host: "0.0.0.0"
port: 8888
webroot: '%paths.base%/tests/behat/fixtures'
host: 0.0.0.0
extensions:
Behat\MinkExtension:
browserkit_http: ~
selenium2: ~
base_url: http://0.0.0.0:8888
"""
And a file named "tests/behat/features/fixtures/screenshot.html" with:
And a file named "tests/behat/fixtures/screenshot.html" with:
"""
<!DOCTYPE html>
<html>
Expand Down
File renamed without changes.

0 comments on commit 592c8aa

Please sign in to comment.