Skip to content

Commit a944e5b

Browse files
author
Dmytro Aponasenko
committed
MTA-1355: Update tests with configuration fixture
- fixed acceptance build plan - fixed static tests
1 parent a9197ba commit a944e5b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Repository/CatalogProductSimple.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
<item name="presets" xsi:type="string">default_subcategory</item>
209209
</field>
210210
<field name="website_ids" xsi:type="array">
211-
<item name="0" xsi:type="string">Ma"bsite</item>
211+
<item name="0" xsi:type="string">Main Website</item>
212212
</field>
213213
<field name="mtf_dataset_name" xsi:type="string">simple_with_category</field>
214214
<field name="url_key" xsi:type="string">simple-product-%isolation%</field>

dev/tests/functional/tests/app/Magento/User/Test/Fixture/User/CurrentPassword.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace Magento\User\Test\Fixture\User;
88

99
use Mtf\ObjectManager;
10-
use Mtf\Fixture\FixtureFactory;
1110
use Mtf\Fixture\FixtureInterface;
1211
use Magento\User\Test\Fixture\AdminUserRole;
1312

@@ -32,11 +31,10 @@ class CurrentPassword implements FixtureInterface
3231

3332
/**
3433
* @construct
35-
* @param FixtureFactory $fixtureFactory
3634
* @param array $params
3735
* @param string $data
3836
*/
39-
public function __construct(FixtureFactory $fixtureFactory, array $params, $data = '')
37+
public function __construct(array $params, $data = '')
4038
{
4139
$this->params = $params;
4240
/** @var \Mtf\System\Config $systemConfig */

lib/internal/Magento/Framework/Test/Utility/Classes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public static function resolveVirtualType($className)
273273
public static function isAutogenerated($className)
274274
{
275275
if (preg_match('/.*\\\\[a-zA-Z0-9]{1,}(Factory|Proxy|SearchResults|DataBuilder)$/', $className)
276-
|| preg_match('/^Magento\\\\[\w]+\\\\(Test\\\\Page)\\\\/', $className)
276+
|| preg_match('/^Magento\\\\[\w]+\\\\Test\\\\(?:Page|Fixture)\\\\/', $className)
277277
) {
278278
return true;
279279
}

0 commit comments

Comments
 (0)