From 53e3a86008164e33fc755d694de0ca725a7e7e18 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Fri, 14 Dec 2018 14:17:57 +0100
Subject: [PATCH] Run tests inside the PHP container

---
 ahoy.test.yml | 10 +++++-----
 composer.json |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ahoy.test.yml b/ahoy.test.yml
index a0cf5c4..326e539 100644
--- a/ahoy.test.yml
+++ b/ahoy.test.yml
@@ -1,14 +1,14 @@
 ahoyapi: v2
 commands:
   phpcs:
-    cmd: phpcs --standard=DrupalPractice $(pwd)/web/modules/custom/ $(pwd)/web/profiles/custom/ $(pwd)/web/themes/custom/
+    cmd: ahoy d4d exec phpcs --standard=DrupalPractice /var/www/html/web/modules/custom/ /var/www/html/web/profiles/custom/ /var/www/html/web/themes/custom/
     usage: PHP coding standards
-  phpunit:test:
-    cmd: vendor/bin/phpunit --configuration $(pwd)/tests/phpunit.xml.dist
+  phpunit:
+    cmd: ahoy d4d exec vendor/bin/phpunit --configuration /var/www/html/tests/phpunit.xml.dist
     usage: PHP unit tests
   phpunit:list:suites:
-    cmd: vendor/bin/phpunit --configuration $(pwd)/tests/phpunit.xml.dist --list-suites
+    cmd: ahoy d4d exec vendor/bin/phpunit --configuration /var/www/html/tests/phpunit.xml.dist --list-suites
     usage: List available test suites of PHP unit tests
   phpunit:list:groups:
-    cmd: vendor/bin/phpunit --configuration $(pwd)/tests/phpunit.xml.dist --list-groups
+    cmd: ahoy d4d exec vendor/bin/phpunit --configuration /var/www/html/tests/phpunit.xml.dist --list-groups
     usage: List available test groups of PHP unit tests
diff --git a/composer.json b/composer.json
index 0d89154..0630c59 100644
--- a/composer.json
+++ b/composer.json
@@ -38,7 +38,7 @@
         "lakedrops/ahoy": "^1.1.1",
         "lakedrops/behat4drupal": "^1.2.0",
         "lakedrops/composer-json-utils": "^1.3.2",
-        "lakedrops/docker4drupal": "^1.9.0",
+        "lakedrops/docker4drupal": "^1.9.5",
         "lakedrops/dorgflow": "^1.3.0",
         "mikey179/vfsStream": "^1.6",
         "phpmd/phpmd": "^2.6.0",
-- 
GitLab