From f5a359773bea274ee6acbd51ddaa56bba9cab9f6 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Thu, 27 Aug 2026 19:43:18 +0200 Subject: [PATCH 1/3] IBX-12374: Added PHP Behat suite configuration --- behat_suites.php | 113 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 behat_suites.php diff --git a/behat_suites.php b/behat_suites.php new file mode 100644 index 0000000..c73a8ec --- /dev/null +++ b/behat_suites.php @@ -0,0 +1,113 @@ +withProfile((new Profile('httpCache')) + ->withSuite((new Suite('symfonycache')) + ->withContexts( + TestContext::class, + ContentTypeContext::class, + ContentContext::class, + TimeContext::class, + ConfigurationContext::class, + BrowserContext::class, + AuthenticationContext::class, + MinkContext::class, + ContentPreviewContext::class + ) + ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/symfony')) + ->withSuite((new Suite('varnish6')) + ->withContexts( + TestContext::class, + ContentTypeContext::class, + TimeContext::class, + ConfigurationContext::class, + ContentContext::class, + BrowserContext::class, + AuthenticationContext::class, + MinkContext::class, + ContentPreviewContext::class + ) + ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') + ->withFilter(new TagFilter('@varnish6&&~@translationAware'))) + ->withSuite((new Suite('varnish6-translation-aware')) + ->withContexts( + TestContext::class, + ContentTypeContext::class, + TimeContext::class, + ConfigurationContext::class, + ContentContext::class, + BrowserContext::class, + AuthenticationContext::class, + MinkContext::class, + ContentPreviewContext::class + ) + ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') + ->withFilter(new TagFilter('@varnish6&&~@translationNotAware'))) + ->withSuite((new Suite('varnish7')) + ->withContexts( + TestContext::class, + ContentTypeContext::class, + TimeContext::class, + ConfigurationContext::class, + ContentContext::class, + BrowserContext::class, + AuthenticationContext::class, + MinkContext::class, + ContentPreviewContext::class + ) + ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') + ->withFilter(new TagFilter('@varnish7&&~@translationAware'))) + ->withSuite((new Suite('varnish7-translation-aware')) + ->withContexts( + TestContext::class, + ContentTypeContext::class, + TimeContext::class, + ConfigurationContext::class, + ContentContext::class, + BrowserContext::class, + AuthenticationContext::class, + MinkContext::class, + ContentPreviewContext::class + ) + ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') + ->withFilter(new TagFilter('@varnish7&&~@translationNotAware'))) + ->withSuite((new Suite('setup')) + ->withContexts( + TestContext::class, + ContentTypeContext::class, + ConfigurationContext::class, + ContentContext::class, + LanguageContext::class + ) + ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/setup/setup.feature')) + ->withSuite((new Suite('setup-token')) + ->withContexts(ConfigurationContext::class) + ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/setup/invalidateToken.feature')) + ->withSuite((new Suite('setup-symfony-cache')) + ->withContexts(FileContext::class) + ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/setup/symfonyCache.feature')) + ->withSuite((new Suite('setup-translation-aware')) + ->withContexts(ConfigurationContext::class) + ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/setup/translationAware.feature'))); From 33274fec73471dcfdfd7746d658b1e01d3060ce7 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Fri, 28 Aug 2026 09:07:19 +0200 Subject: [PATCH 2/3] IBX-12374: Shared the browser suite contexts in PHP Behat configuration --- behat_suites.php | 72 ++++++++++++------------------------------------ 1 file changed, 17 insertions(+), 55 deletions(-) diff --git a/behat_suites.php b/behat_suites.php index c73a8ec..5c38ca6 100644 --- a/behat_suites.php +++ b/behat_suites.php @@ -22,75 +22,37 @@ use Ibexa\Behat\Core\Context\FileContext; use Ibexa\Behat\Core\Context\TimeContext; +$browserContexts = [ + TestContext::class, + ContentTypeContext::class, + ContentContext::class, + TimeContext::class, + ConfigurationContext::class, + BrowserContext::class, + AuthenticationContext::class, + MinkContext::class, + ContentPreviewContext::class, +]; + return (new Config()) ->withProfile((new Profile('httpCache')) ->withSuite((new Suite('symfonycache')) - ->withContexts( - TestContext::class, - ContentTypeContext::class, - ContentContext::class, - TimeContext::class, - ConfigurationContext::class, - BrowserContext::class, - AuthenticationContext::class, - MinkContext::class, - ContentPreviewContext::class - ) + ->withContexts(...$browserContexts) ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/symfony')) ->withSuite((new Suite('varnish6')) - ->withContexts( - TestContext::class, - ContentTypeContext::class, - TimeContext::class, - ConfigurationContext::class, - ContentContext::class, - BrowserContext::class, - AuthenticationContext::class, - MinkContext::class, - ContentPreviewContext::class - ) + ->withContexts(...$browserContexts) ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') ->withFilter(new TagFilter('@varnish6&&~@translationAware'))) ->withSuite((new Suite('varnish6-translation-aware')) - ->withContexts( - TestContext::class, - ContentTypeContext::class, - TimeContext::class, - ConfigurationContext::class, - ContentContext::class, - BrowserContext::class, - AuthenticationContext::class, - MinkContext::class, - ContentPreviewContext::class - ) + ->withContexts(...$browserContexts) ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') ->withFilter(new TagFilter('@varnish6&&~@translationNotAware'))) ->withSuite((new Suite('varnish7')) - ->withContexts( - TestContext::class, - ContentTypeContext::class, - TimeContext::class, - ConfigurationContext::class, - ContentContext::class, - BrowserContext::class, - AuthenticationContext::class, - MinkContext::class, - ContentPreviewContext::class - ) + ->withContexts(...$browserContexts) ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') ->withFilter(new TagFilter('@varnish7&&~@translationAware'))) ->withSuite((new Suite('varnish7-translation-aware')) - ->withContexts( - TestContext::class, - ContentTypeContext::class, - TimeContext::class, - ConfigurationContext::class, - ContentContext::class, - BrowserContext::class, - AuthenticationContext::class, - MinkContext::class, - ContentPreviewContext::class - ) + ->withContexts(...$browserContexts) ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') ->withFilter(new TagFilter('@varnish7&&~@translationNotAware'))) ->withSuite((new Suite('setup')) From 841aff6c2204f936fbb5d8af372046a44e540d5f Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Fri, 28 Aug 2026 09:15:00 +0200 Subject: [PATCH 3/3] IBX-12374: Reused the varnish features path in PHP Behat configuration --- behat_suites.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/behat_suites.php b/behat_suites.php index 5c38ca6..5bc04b3 100644 --- a/behat_suites.php +++ b/behat_suites.php @@ -22,6 +22,8 @@ use Ibexa\Behat\Core\Context\FileContext; use Ibexa\Behat\Core\Context\TimeContext; +$varnishFeaturesPath = '%paths.base%/vendor/ibexa/http-cache/features/varnish'; + $browserContexts = [ TestContext::class, ContentTypeContext::class, @@ -41,19 +43,19 @@ ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/symfony')) ->withSuite((new Suite('varnish6')) ->withContexts(...$browserContexts) - ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') + ->withPaths($varnishFeaturesPath) ->withFilter(new TagFilter('@varnish6&&~@translationAware'))) ->withSuite((new Suite('varnish6-translation-aware')) ->withContexts(...$browserContexts) - ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') + ->withPaths($varnishFeaturesPath) ->withFilter(new TagFilter('@varnish6&&~@translationNotAware'))) ->withSuite((new Suite('varnish7')) ->withContexts(...$browserContexts) - ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') + ->withPaths($varnishFeaturesPath) ->withFilter(new TagFilter('@varnish7&&~@translationAware'))) ->withSuite((new Suite('varnish7-translation-aware')) ->withContexts(...$browserContexts) - ->withPaths('%paths.base%/vendor/ibexa/http-cache/features/varnish') + ->withPaths($varnishFeaturesPath) ->withFilter(new TagFilter('@varnish7&&~@translationNotAware'))) ->withSuite((new Suite('setup')) ->withContexts(