File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/Magento/FunctionalTestingFramework/Suite/views Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -181,12 +181,17 @@ class {{suiteName}} extends \Codeception\GroupObject
181
181
private function getTestCount()
182
182
{
183
183
$config = $this -> getGlobalConfig ();
184
- if (empty($config [' groups' ]) && empty($config [' groups' ][self::$group ])) {
184
+ if (empty($config [' groups' ]) || empty($config [' groups' ][self::$group ])) {
185
185
return $this -> testCount ;
186
186
}
187
187
$pathToGroupDir = TESTS_BP . DIRECTORY_SEPARATOR . array_first($config['groups'][self::$group]);
188
- $pathToGroupCests = $pathToGroupDir . DIRECTORY_SEPARATOR . "*Cest.php";
188
+ $pathToGroupCests = $pathToGroupDir . "*Cest.php";
189
189
190
- return count(glob($pathToGroupCests));
190
+ $files = glob($pathToGroupCests);
191
+ if (is_array($files)) {
192
+ return count($files );
193
+ }
194
+
195
+ return $this->testCount;
191
196
}
192
197
}
You can’t perform that action at this time.
0 commit comments