Change the way getName() is called to get rid of a PHPStan error
[MAILPOET-4695]
This commit is contained in:
committed by
Rostislav Wolný
parent
7cb6609faa
commit
c4c94c2db0
@ -64,10 +64,6 @@ parameters:
|
|||||||
message: '/^Call to function method_exists\(\) with/'
|
message: '/^Call to function method_exists\(\) with/'
|
||||||
count: 2
|
count: 2
|
||||||
path: ../../lib/WooCommerce/Helper.php
|
path: ../../lib/WooCommerce/Helper.php
|
||||||
-
|
|
||||||
message: '/^Call to an undefined method Codeception\\TestInterface::getName()./'
|
|
||||||
count: 1
|
|
||||||
path: ../../tests/_support/CheckSkippedTestsExtension.php
|
|
||||||
|
|
||||||
reportUnmatchedIgnoredErrors: true
|
reportUnmatchedIgnoredErrors: true
|
||||||
dynamicConstantNames:
|
dynamicConstantNames:
|
||||||
|
@ -12,7 +12,7 @@ class CheckSkippedTestsExtension extends Extension {
|
|||||||
|
|
||||||
public function checkSkippedTests(FailEvent $event) {
|
public function checkSkippedTests(FailEvent $event) {
|
||||||
$branch = getenv('CIRCLE_BRANCH');
|
$branch = getenv('CIRCLE_BRANCH');
|
||||||
$testName = $event->getTest()->getName();
|
$testName = $event->getTest()->getMetadata()->getName();
|
||||||
|
|
||||||
// list of tests that are allowed to be skipped on trunk and release branches
|
// list of tests that are allowed to be skipped on trunk and release branches
|
||||||
$allowedToSkipList = ['createSubscriptionSegmentForActiveSubscriptions'];
|
$allowedToSkipList = ['createSubscriptionSegmentForActiveSubscriptions'];
|
||||||
|
Reference in New Issue
Block a user