From 55de1c4993e374eb2fc02c83ef364047e6e3cee7 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Thu, 16 Jun 2016 00:38:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B5?= =?UTF-8?q?=D0=BD=20code=20coverage=20=D0=B4=D0=BB=D1=8F=20=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D0=B2=20php=20=D1=87=D0=B0=D1=81=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/models/Account.php | 1 + tests/codeception/api/codeception.yml | 12 ++++++++++++ tests/codeception/common/codeception.yml | 8 ++++++++ tests/codeception/console/codeception.yml | 10 ++++++++++ 4 files changed, 31 insertions(+) diff --git a/common/models/Account.php b/common/models/Account.php index b297e3b..994d4d2 100644 --- a/common/models/Account.php +++ b/common/models/Account.php @@ -36,6 +36,7 @@ use yii\db\ActiveRecord; * @mixin TimestampBehavior */ class Account extends ActiveRecord { + const STATUS_DELETED = -10; const STATUS_REGISTERED = 0; const STATUS_ACTIVE = 10; diff --git a/tests/codeception/api/codeception.yml b/tests/codeception/api/codeception.yml index b401d12..7d33e31 100644 --- a/tests/codeception/api/codeception.yml +++ b/tests/codeception/api/codeception.yml @@ -15,3 +15,15 @@ config: # the entry script URL (with host info) for functional tests # PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL test_entry_url: http://localhost:8080/api/web/index-test.php +coverage: + enabled: true + remote: true + whitelist: + include: + - ../../../api/* + exclude: + - ../../../api/config/* + - ../../../api/mails/* + - ../../../api/web/* + - ../../../api/runtime/* + c3url: 'http://localhost:8080/api/web/index-test.php' diff --git a/tests/codeception/common/codeception.yml b/tests/codeception/common/codeception.yml index e8a3407..f81585b 100644 --- a/tests/codeception/common/codeception.yml +++ b/tests/codeception/common/codeception.yml @@ -11,3 +11,11 @@ settings: colors: true memory_limit: 1024M log: true +coverage: + enabled: true + whitelist: + include: + - ../../../common/* + exclude: + - ../../../common/config/* + - ../../../common/mail/* diff --git a/tests/codeception/console/codeception.yml b/tests/codeception/console/codeception.yml index d1ae794..14c972e 100644 --- a/tests/codeception/console/codeception.yml +++ b/tests/codeception/console/codeception.yml @@ -11,3 +11,13 @@ settings: colors: true memory_limit: 1024M log: true +coverage: + enabled: true + whitelist: + include: + - ../../../console/* + exclude: + - ../../../console/config/* + - ../../../console/runtime/* + - ../../../console/migrations/* + - ../../../console/views/*