From 60d89fc5527fc8bf04d3d4683a5739270dec6f5b Mon Sep 17 00:00:00 2001 From: Luke English Date: Thu, 24 Feb 2022 21:45:17 +0000 Subject: [PATCH] Make template compatible with PHP 8.1 and Codeception 5 (#259) Co-authored-by: Luke English --- .github/workflows/build.yml | 1 + tests/functional.suite.yml | 1 + tests/functional/ContactFormCest.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0671f89..103e745 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,7 @@ jobs: - "7.3" - "7.4" - "8.0" + - "8.1" steps: - name: Checkout diff --git a/tests/functional.suite.yml b/tests/functional.suite.yml index 374c6df..6d6ff7b 100644 --- a/tests/functional.suite.yml +++ b/tests/functional.suite.yml @@ -11,3 +11,4 @@ modules: enabled: - Filesystem - Yii2 + - Asserts diff --git a/tests/functional/ContactFormCest.php b/tests/functional/ContactFormCest.php index ad81678..d17ef52 100644 --- a/tests/functional/ContactFormCest.php +++ b/tests/functional/ContactFormCest.php @@ -4,7 +4,7 @@ class ContactFormCest { public function _before(\FunctionalTester $I) { - $I->amOnPage(['site/contact']); + $I->amOnRoute('site/contact'); } public function openContactPage(\FunctionalTester $I)