Change the way getName() is called to get rid of a PHPStan error

[MAILPOET-4695]
This commit is contained in:
Rodrigo Primo
2022-10-05 10:49:50 -03:00
committed by Rostislav Wolný
parent 7cb6609faa
commit c4c94c2db0
2 changed files with 1 additions and 5 deletions

View File

@ -64,10 +64,6 @@ parameters:
message: '/^Call to function method_exists\(\) with/'
count: 2
path: ../../lib/WooCommerce/Helper.php
-
message: '/^Call to an undefined method Codeception\\TestInterface::getName()./'
count: 1
path: ../../tests/_support/CheckSkippedTestsExtension.php
reportUnmatchedIgnoredErrors: true
dynamicConstantNames:

View File

@ -12,7 +12,7 @@ class CheckSkippedTestsExtension extends Extension {
public function checkSkippedTests(FailEvent $event) {
$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
$allowedToSkipList = ['createSubscriptionSegmentForActiveSubscriptions'];