magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.4k stars 9.29k forks source link

Magento 2.3.2 default magento unit test failed #24463

Open mani513 opened 4 years ago

mani513 commented 4 years ago

*Preconditions ()** In Magento 2.3.2 opensource version & 2.3-develop too, run unit tests with the fresh installation.

Steps to reproduce In Magento 2.3.2 opensource version, run unit tests with the fresh installation. vendor/bin/phpunit --verbose -c dev/tests/unit/phpunit.xml.dist

*Expected result ()** All tests should pass

Actual result after running this command i'm getting this result - Tests: 21867, Assertions: 61116, Errors: 3, Failures: 5, Skipped: 119, Incomplete: 43

If i see the details of this results its showing something like this-

There were 119 skipped tests:-

1) Magento\Catalog\Test\Unit\Controller\Adminhtml\Category\SaveTest::testExecute with data set #0 (false, 7, 123) Due to MAGETWO-48956

2)Magento\Framework\Lock\Test\Unit\Backend\ZookeeperTest::testConstructionWithPathException Test was skipped because php extension Zookeeper is not installed.

m2-assistant[bot] commented 4 years ago

Hi @mani513. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.3-develop instance - upcoming 2.3.x release

For more details, please, review the Magento Contributor Assistant documentation.

@mani513 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?


mani513 commented 4 years ago

Yes, I'm able to reproduce the issue on vanilla Magento instance.

*Preconditions ()** In Magento 2.3.2 opensource version, run unit tests with the fresh installation.

Steps to reproduce In Magento 2.3.2 opensource version, run unit tests with the fresh installation. vendor/bin/phpunit --verbose -c dev/tests/unit/phpunit.xml.dist

*Expected result ()** All tests should pass

Actual result

There were 3 errors:
1) Magento\Catalog\Test\Unit\Model\Product\TierPriceManagementTest::testSetNewPriceWithGlobalPriceScopeAll Magento\Framework\Exception\InputException: The data was invalid. Verify the data and try again.

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Model/Product/TierPriceManagement.php:94 /var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Product/TierPriceManagementTest.php:271

2) Magento\Catalog\Test\Unit\Model\Product\TierPriceManagementTest::testSetNewPriceWithGlobalPriceScope Magento\Framework\Exception\InputException: The data was invalid. Verify the data and try again.

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Model/Product/TierPriceManagement.php:94 /var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Product/TierPriceManagementTest.php:302

3) Magento\Catalog\Test\Unit\Model\Product\TierPriceManagementTest::testSetUpdatedPriceWithGlobalPriceScope Magento\Framework\Exception\InputException: The data was invalid. Verify the data and try again.

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Model/Product/TierPriceManagement.php:94 /var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Product/TierPriceManagementTest.php:329

--

There were 3 failures:

1) Magento\Catalog\Test\Unit\Model\Product\TierPriceManagementTest::testSetThrowsExceptionIfDoesntValidate Failed asserting that exception message 'The data was invalid. Verify the data and try again.' contains 'Values in the attr1, attr2 attributes are invalid. Verify the values and try again.'.

2) Magento\Catalog\Test\Unit\Model\Product\TierPriceManagementTest::testSetThrowsExceptionIfCantSave Failed asserting that exception of type "Magento\Framework\Exception\InputException" matches expected exception "\Magento\Framework\Exception\CouldNotSaveException". Message was: "The data was invalid. Verify the data and try again." at /var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Model/Product/TierPriceManagement.php:94 /var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Product/TierPriceManagementTest.php:371 .

3) Magento\Catalog\Test\Unit\Model\Product\TierPriceManagementTest::testAddRethrowsTemporaryStateExceptionIfRecoverableErrorOccurred Failed asserting that exception of type "Magento\Framework\Exception\InputException" matches expected exception "\Magento\Framework\Exception\TemporaryState\CouldNotSaveException". Message was: "The data was invalid. Verify the data and try again." at /var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Model/Product/TierPriceManagement.php:94 /var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Product/TierPriceManagementTest.php:395 .

--

There were 43 incomplete tests:

1) Magento\Catalog\Test\Unit\Model\CategoryTest::testMoveWhenCannotFindParentCategory MAGETWO-31165

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/CategoryTest.php:185

2) Magento\Catalog\Test\Unit\Model\CategoryTest::testMoveWhenParentCategoryIsSameAsChildCategory MAGETWO-31165

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/CategoryTest.php:231

3) Magento\GroupedProduct\Test\Unit\Model\ProductTest::testGetProductLinks Skipped due to https://jira.corp.x.com/browse/MAGETWO-36926

/var/www/html/magento2-2.3.2/app/code/Magento/GroupedProduct/Test/Unit/Model/ProductTest.php:311

4) Magento\ImportExport\Test\Unit\Block\Adminhtml\Export\FilterTest::testPrepareForm This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Block/Adminhtml/Export/FilterTest.php:295

5) Magento\ImportExport\Test\Unit\Block\Adminhtml\Import\Edit\FormTest::testPrepareForm This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Block/Adminhtml/Import/Edit/FormTest.php:75

6) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetOperationResultMessages This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:327

7) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetEntity This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:349

8) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetErrorsCount This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:357

9) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetErrorsLimit This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:365

10) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetInvalidRowsCount This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:373

11) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetNotices This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:381

12) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetProcessedEntitiesCount This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:389

13) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetProcessedRowsCount This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:397

14) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetWorkingDir This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:405

15) Magento\ImportExport\Test\Unit\Model\ImportTest::testIsImportAllowed This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:413

16) Magento\ImportExport\Test\Unit\Model\ImportTest::testUploadSource This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:421

17) Magento\ImportExport\Test\Unit\Model\ImportTest::testGetUniqueEntityBehaviors This test has not been implemented yet.

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php:652

18) Magento\Paypal\Test\Unit\Controller\Express\PlaceOrderTest::testExecuteNonProcessableException with data set #0 (true)

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

19) Magento\Paypal\Test\Unit\Controller\Express\PlaceOrderTest::testExecuteNonProcessableException with data set #1 (false)

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

20) Magento\Paypal\Test\Unit\Controller\Express\PlaceOrderTest::testExecuteProcessableException with data set #0 (10416)

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

21) Magento\Paypal\Test\Unit\Controller\Express\PlaceOrderTest::testExecuteProcessableException with data set #1 (10411)

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

22) Magento\Paypal\Test\Unit\Controller\Express\PlaceOrderTest::testExecuteProcessableException with data set #2 (10422)

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

23) Magento\Paypal\Test\Unit\Controller\Express\PlaceOrderTest::testExecuteProcessableException with data set #3 (10486, 'order')

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

24) Magento\Paypal\Test\Unit\Controller\Express\PlaceOrderTest::testExecuteProcessableException with data set #4 (10486, 'other')

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

25) Magento\Paypal\Test\Unit\Controller\Express\PlaceOrderTest::testExecuteProcessableException with data set #5 (999999)

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

26) Magento\Paypal\Test\Unit\Controller\Express\ReturnActionTest::testExecuteAuthorizationRetrial

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

27) Magento\Paypal\Test\Unit\Controller\Express\ReturnActionTest::testExecute with data set #0 (true)

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

28) Magento\Paypal\Test\Unit\Controller\Express\ReturnActionTest::testExecute with data set #1 (false)

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

29) Magento\Paypal\Test\Unit\Controller\Express\StartTest::testStartAction with data set #0 ('1')

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

30) Magento\Paypal\Test\Unit\Controller\Express\StartTest::testStartAction with data set #1 (null)

/var/www/html/magento2-2.3.2/app/code/Magento/Paypal/Test/Unit/Controller/ExpressTest.php:62

31) Magento\Sales\Test\Unit\Block\Reorder\SidebarTest::testGetIdentities MAGETWO-36789

/var/www/html/magento2-2.3.2/app/code/Magento/Sales/Test/Unit/Block/Reorder/SidebarTest.php:68

32) Magento\Sales\Test\Unit\Block\Reorder\SidebarTest::testInitOrders MAGETWO-36789

/var/www/html/magento2-2.3.2/app/code/Magento/Sales/Test/Unit/Block/Reorder/SidebarTest.php:68

33) Magento\Sales\Test\Unit\Block\Reorder\SidebarTest::testIsItemAvailableForReorder MAGETWO-36789

/var/www/html/magento2-2.3.2/app/code/Magento/Sales/Test/Unit/Block/Reorder/SidebarTest.php:68

34) Magento\Sales\Test\Unit\Block\Reorder\SidebarTest::testItemNotAvailableForReorderWhenProductNotExist MAGETWO-36789

/var/www/html/magento2-2.3.2/app/code/Magento/Sales/Test/Unit/Block/Reorder/SidebarTest.php:68

35) Magento\Tax\Test\Unit\Model\Sales\Total\Quote\ShippingTest::testCollect Target code is not unit testable. Refactoring is required.

/var/www/html/magento2-2.3.2/app/code/Magento/Tax/Test/Unit/Model/Sales/Total/Quote/ShippingTest.php:121

36) Magento\Tax\Test\Unit\Model\Sales\Total\Quote\TaxTest::testCollect with data set "default" (array(1, 100, 20, 'simple', 'sequence-1', 'sequence-1', 100), array(array(array(array('US-NY--Rate ', 'US-NY--Rate ', 20, 1)), 20, 'US-NY--Rate 1')), array(100, 20, 0, array(array(20, 20, array(array(20)), 'US-NY--Rate 1')), array(array(array('sequence-1', 'product', 20, 100, 120, 100, 120, 'sequence-1')))), array(array(array('123 Main Street'), '10012', 'US', array(43), 'New York'), array(array('123 Main Street'), '10012', 'US', array(43), 'New York'), '1', array(array('sequence-1', 'product', 1, 100, array(array('id', 2)), 'is_tax_included = false'))), array(2, 'shipping', '123 Main Street', 'New York', 'New York', '43', '10012', 'US', '111-111-1111', '1', 'freeshipping_freeshipping', 1, 0, 0), array(20.0, 100, 0, 120.0)) Source code is not testable. Need to be refactored before unit testing

/var/www/html/magento2-2.3.2/app/code/Magento/Tax/Test/Unit/Model/Sales/Total/Quote/TaxTest.php:46

37) Magento\Framework\Module\Test\Unit\Setup\MigrationTest::testDoUpdateClassAliases with data set "plain text replace model" (array(array('table', 'field', 'Model', 'plain')), array(array('customer/customer'), array('customer/attribute_data_postcode'), array('customer/attribute_data_postc...Method'), array('Magento\Customer\Model\Customer')), array(array(array('table', 'field', 'Magento\Customer\Model\Custom...OM_MAP', array('customer/customer')), array('table', 'field', 'Magento\Customer\Model\Attrib...stcode', array('customer/attribute_data_postcode')), array('table', 'field', 'Magento\Customer\Model\Attrib...Method', array('customer/attribute_data_postc...Method'))), array(array('Magento\Customer\Model\Custom...OM_MAP', 'Magento\Customer\Model\Attrib...stcode'))), array(array('Magento\Customer\Model\Custom...OM_MAP'))) Requires refactoring of class that is tested, covers to many methods

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Module/Test/Unit/Setup/MigrationTest.php:191

38) Magento\Framework\Module\Test\Unit\Setup\MigrationTest::testDoUpdateClassAliases with data set "plain text replace resource" (array(array('table', 'collection', 'Model_Resource', 'plain', array(), 'flag = 1')), array(array('customer/attribute_collection')), array(array(array('table', 'collection', 'Magento\Customer\Model\Resour...ection', array('customer/attribute_collection'))), array('flag = 1'), array(array('Magento\Customer\Model\Resour...ection')))) Requires refactoring of class that is tested, covers to many methods

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Module/Test/Unit/Setup/MigrationTest.php:191

39) Magento\Framework\Module\Test\Unit\Setup\MigrationTest::testDoUpdateClassAliases with data set "plain text replace with pk field" (array(array('table', 'collection', 'Model_Resource', 'plain', array('pk_field1', 'pk_field2'))), array(array('customer/attribute_collection', 'pk_value1', 'pk_value2')), array(array(array('table', 'collection', 'Magento\Customer\Model\Resour...ection', array('pk_value1', 'pk_value2'))), array(array('Magento\Customer\Model\Resour...ection')))) Requires refactoring of class that is tested, covers to many methods

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Module/Test/Unit/Setup/MigrationTest.php:191

40) Magento\Framework\Module\Test\Unit\Setup\MigrationTest::testDoUpdateClassAliases with data set "xml replace" (array(array('table', 'field', 'Block', 'xml')), array(array(''), array('')), array(array(array('table', 'field', '')), array('table', 'field', ''))), array(array('Magento\Catalog\Block\Product...roduct', 'Magento\CatalogSearch\Block\Result')))) Requires refactoring of class that is tested, covers to many methods

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Module/Test/Unit/Setup/MigrationTest.php:191

41) Magento\Framework\Module\Test\Unit\Setup\MigrationTest::testDoUpdateClassAliases with data set "wiki markup replace" (array(array('table', 'field', 'Block', 'wiki')), array(array('

{{widget type="productaler...}}

'), array('

{{widget type="catalogSear...}}

'), array('

Some HTML code

')), array(array(array('table', 'field', '

{{widget type="Magento\Pro...}}

', array('

{{widget type="productaler...}}

')), array('table', 'field', '

{{widget type="Magento\Cat...}}

', array('

{{widget type="catalogSear...}}

'))), array(array('Magento\ProductAlert\Block\Pr...t\View', 'Magento\CatalogSearch\Block\Result')))) Requires refactoring of class that is tested, covers to many methods

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Module/Test/Unit/Setup/MigrationTest.php:191

42) Magento\Framework\Module\Test\Unit\Setup\MigrationTest::testDoUpdateClassAliases with data set "serialized php replace" (array(array('table', 'field', 'Model', 'serialized')), array(array('{"max_text_length":255,"min_t...th":1}'), array('{"model":"some random text"}')), array(array(array('table', 'field', '{"model":"Magento\CatalogRule...bine"}', array('{"model":"catalogrule\/rule_c...bine"}'))), array(array('Magento\CatalogRule\Model\Rul...ombine')))) Requires refactoring of class that is tested, covers to many methods

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Module/Test/Unit/Setup/MigrationTest.php:191

43) Magento\Framework\Translate\Test\Unit\AdapterTest::testUnderscoresTranslation MAGETWO-1012: i18n Improvements - Localization/Translations

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Translate/Test/Unit/AdapterTest.php:59

--

There were 115 skipped tests:

1) Magento\Catalog\Test\Unit\Controller\Adminhtml\Category\SaveTest::testExecute with data set #0 (false, 7, 123) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category/SaveTest.php:134

2) Magento\Catalog\Test\Unit\Controller\Adminhtml\Category\SaveTest::testExecute with data set #1 (false, 7, null) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category/SaveTest.php:134

3) Magento\Catalog\Test\Unit\Controller\Adminhtml\Product\Attribute\SaveTest::testDispatch Should be dispatched in parent

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/AttributeTest.php:114

4) Magento\Catalog\Test\Unit\Controller\Adminhtml\Product\Attribute\ValidateTest::testDispatch Should be dispatched in parent

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/AttributeTest.php:114

5) Magento\Catalog\Test\Unit\Controller\Adminhtml\Product\AttributeTest::testDispatch Should be dispatched in parent

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/AttributeTest.php:114

6) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testBeforeSave with data set "attribute with specified value" ('attribute_name', array('test_value'), 'test_value') Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

7) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testBeforeSave with data set "attribute with default value" ('attribute_name', array(null), null) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

8) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testBeforeSave with data set "attribute does not exist" ('attribute_name', array(), null) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

9) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testBeforeSave with data set "attribute sort by empty" ('available_sort_by', array(null), null) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

10) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testBeforeSave with data set "attribute sort by" ('available_sort_by', array(array('test', 'value')), 'test,value') Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

11) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testAfterLoad with data set "attribute with specified value" ('attribute_name', array('test_value'), 'test_value') Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

12) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testAfterLoad with data set "attribute sort by empty" ('available_sort_by', array(null), null) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

13) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testAfterLoad with data set "attribute sort by" ('available_sort_by', array('test,value'), array('test', 'value')) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

14) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidate with data set "is not required" (array('attribute_name', false, false), array(), true) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

15) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidate with data set "required, empty, not use config case 1" (array('attribute_name', true, true), array(array(), array()), false) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

16) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidate with data set "required, empty, not use config case 2" (array('attribute_name', true, true), array(array(), array('config')), false) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

17) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidate with data set "required, empty, use config" (array('attribute_name', true, true), array(array(), array('attribute_name')), true) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

18) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidateUnique Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

19) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidateUniqueException Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

20) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidateDefaultSort with data set #0 ('default_sort_by', array(array('value1', 'value2'), 'value2', array())) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

21) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidateDefaultSort with data set #1 ('default_sort_by', array('value1,value2', array('default_sort_by'))) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

22) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidateDefaultSort with data set #2 ('default_sort_by', array(null, null, array('available_sort_by', 'default_sort_by', 'filter_price_range'))) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

23) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidateDefaultSortException with data set #0 ('default_sort_by', array(null, array('default_sort_by'))) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

24) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidateDefaultSortException with data set #1 ('default_sort_by', array(null, array())) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

25) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidateDefaultSortException with data set #2 ('default_sort_by', array(array('value1', 'value2'), 'another value', array())) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

26) Magento\Catalog\Test\Unit\Model\Category\Attribute\Backend\SortbyTest::testValidateDefaultSortException with data set #3 ('default_sort_by', array('value1', array())) Due to MAGETWO-48956

/var/www/html/magento2-2.3.2/app/code/Magento/Catalog/Test/Unit/Model/Category/Attribute/Backend/SortbyTest.php:35

27) Magento\Customer\Test\Unit\Controller\Account\CreatePostTest::testCreatePostActionRegistrationDisabled Cannot be unit tested with the auto generated builder dependencies

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Account/CreatePostTest.php:141

28) Magento\Customer\Test\Unit\Controller\Account\CreatePostTest::testRegenerateIdOnExecution Cannot be unit tested with the auto generated builder dependencies

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Account/CreatePostTest.php:141

29) Magento\Customer\Test\Unit\Controller\Account\CreatePostTest::testSuccessMessage with data set #0 (1, 'customer@example.com', '123123q', 'account_confirmation_required', false, 'shipping', 'An account confirmation is required') Cannot be unit tested with the auto generated builder dependencies

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Account/CreatePostTest.php:141

30) Magento\Customer\Test\Unit\Controller\Account\CreatePostTest::testSuccessMessage with data set #1 (1, 'customer@example.com', '123123q', 'account_confirmation_required', false, 'shipping', 'Thank you for registering with') Cannot be unit tested with the auto generated builder dependencies

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Account/CreatePostTest.php:141

31) Magento\Customer\Test\Unit\Controller\Account\CreatePostTest::testSuccessMessage with data set #2 (1, 'customer@example.com', '123123q', 'account_confirmation_required', true, 'shipping', 'enter you shipping address fo...lation') Cannot be unit tested with the auto generated builder dependencies

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Account/CreatePostTest.php:141

32) Magento\Customer\Test\Unit\Controller\Account\CreatePostTest::testSuccessMessage with data set #3 (1, 'customer@example.com', '123123q', 'account_confirmation_required', true, 'billing', 'enter you billing address for...lation') Cannot be unit tested with the auto generated builder dependencies

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Account/CreatePostTest.php:141

33) Magento\Customer\Test\Unit\Controller\Account\CreatePostTest::testSuccessRedirect with data set #0 (1, '123123q', 'account_confirmation_not_required', 'http://example.com/success', true, 'Thank you for registering with') Cannot be unit tested with the auto generated builder dependencies

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Account/CreatePostTest.php:141

34) Magento\Customer\Test\Unit\Controller\Account\CreatePostTest::testSuccessRedirect with data set #1 (1, '123123q', 'account_confirmation_not_required', 'http://example.com/success', false, 'Thank you for registering with') Cannot be unit tested with the auto generated builder dependencies

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Account/CreatePostTest.php:141

35) Magento\Customer\Test\Unit\Controller\Adminhtml\File\Address\UploadTest::testExecuteEmptyFiles

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/File/Address/UploadTest.php:80

36) Magento\Customer\Test\Unit\Controller\Adminhtml\File\Customer\UploadTest::testExecuteEmptyFiles

/var/www/html/magento2-2.3.2/app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/File/Customer/UploadTest.php:79

37) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #0 (false, false, true, true, array(), true, true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

38) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #1 (array('', ''), 'value', true, false, array(), true, true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

39) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #2 (array('delete', ''), 'value', false, false, array(), true, true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

40) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #3 (array('delete', ''), 'value', true, false, array(), true, array('"Label" is a required value.')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

41) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #4 (array('delete', 'tmp_name', 'name'), 'value', true, false, array(), true, true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

42) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #5 (array('delete', 'tmp_name', 'name.txt'), 'value', true, false, array('txt,png'), true, true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

43) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #6 (array('delete', 'tmp_name', 'name.rpg'), 'value', true, false, array(' txt , png '), true, array('"Label" is not a valid file extension.')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

44) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #7 (array('delete', 'tmp_name', 'name.txt'), 'value', true, false, array(''), false, array('m1', 'm2')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

45) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #8 (array('delete', 'NotUploaded', ''), 'value', true, false, array(), true, array('"Label" is not a valid file.')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

46) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #9 (array('delete', 'tmp_name', 'name.txt', 20), 'value', true, false, array(10), true, array('"Label" exceeds the allowed file size.')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

47) Magento\Eav\Test\Unit\Model\Attribute\Data\FileTest::testValidateValue with data set #10 (array('delete', 'tmp_name', 'name.txt', 5), 'value', true, false, array(10), true, true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/FileTest.php:121

48) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #0 (array('delete', 'NotUploaded'), 'value', true, false, array(), array('"Label" is not a valid file')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

49) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #1 (array('delete', '/var/www/html/magento2-2.3.2/...ge.ico', 'image.ico'), 'value', true, false, array(), array('"Label" is not a valid image format')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

50) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #2 (array('delete', '/var/www/html/magento2-2.3.2/...ge.jpg', 'image.ppp'), 'value', true, false, array(), true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

51) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #3 (array('delete', '/var/www/html/magento2-2.3.2/...ge.jpg', 'image.jpg', 10), 'value', true, false, array(2), array('"Label" exceeds the allowed file size.')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

52) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #4 (array('delete', '/var/www/html/magento2-2.3.2/...ge.jpg', 'image.jpg', 10), 'value', true, false, array(20), true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

53) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #5 (array('delete', '/var/www/html/magento2-2.3.2/...ge.jpg', 'image.jpg'), 'value', true, false, array(2), array('"Label" width exceeds allowed... 2 px.')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

54) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #6 (array('delete', '/var/www/html/magento2-2.3.2/...ge.jpg', 'image.jpg'), 'value', true, false, array(2000), true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

55) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #7 (array('delete', '/var/www/html/magento2-2.3.2/...ge.jpg', 'image.jpg'), 'value', true, false, array(2), array('"Label" height exceeds allowe... 2 px.')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

56) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #8 (array('delete', '/var/www/html/magento2-2.3.2/...ge.jpg', 'image.jpg'), 'value', true, false, array(2000), true) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

57) Magento\Eav\Test\Unit\Model\Attribute\Data\ImageTest::testValidateValue with data set #9 (array('delete', '/var/www/html/magento2-2.3.2/...ge.jpg', 'image.jpg'), 'value', true, false, array(2, 2), array('"Label" width exceeds allowed... 2 px.', '"Label" height exceeds allowe... 2 px.')) MAGETWO-34751: Test fails after being moved. Might have hidden dependency.

/var/www/html/magento2-2.3.2/app/code/Magento/Eav/Test/Unit/Model/Attribute/Data/ImageTest.php:18

58) Magento\ImportExport\Test\Unit\Model\Import\AdapterTest::testFactory Skipped because factory method has static modifier

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/Import/AdapterTest.php:24

59) Magento\ImportExport\Test\Unit\Model\Import\AdapterTest::testFindAdapterFor Skipped because findAdapterFor method has static modifier

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/Import/AdapterTest.php:29

60) Magento\ImportExport\Test\Unit\Model\Import\Source\CsvTest::testConstructStream MAGETWO-17084: Replace PHP native calls

/var/www/html/magento2-2.3.2/app/code/Magento/ImportExport/Test/Unit/Model/Import/Source/CsvTest.php:42

61) Magento\ImportExport\Test\Unit\Model\Import\Source\ZipTest::testConstructorFileDestinationMatch with data set #0 ('test_file.txt', 'test_file.txt') This test depends on "Magento\ImportExport\Test\Unit\Model\Import\Source\ZipTest::testConstructorInternalCalls" to pass.

62) Magento\ImportExport\Test\Unit\Model\Import\Source\ZipTest::testConstructorFileDestinationMatch with data set #1 ('test_file.zip', 'test_file.csv') This test depends on "Magento\ImportExport\Test\Unit\Model\Import\Source\ZipTest::testConstructorInternalCalls" to pass.

63) Magento\ImportExport\Test\Unit\Model\Import\Source\ZipTest::testConstructorFileDestinationMatch with data set #2 ('.ziptest.zip.file.zip.ZIP', '.ziptest.zip.file.zip.csv') This test depends on "Magento\ImportExport\Test\Unit\Model\Import\Source\ZipTest::testConstructorInternalCalls" to pass.

64) Magento\OfflineShipping\Test\Unit\Model\Carrier\FlatrateTest::testCollectRatesWithGlobalFreeShipping with data set #0 (true) Test needs refactoring.

/var/www/html/magento2-2.3.2/app/code/Magento/OfflineShipping/Test/Unit/Model/Carrier/FlatrateTest.php:112

65) Magento\OfflineShipping\Test\Unit\Model\Carrier\FlatrateTest::testCollectRatesWithGlobalFreeShipping with data set #1 (false) Test needs refactoring.

/var/www/html/magento2-2.3.2/app/code/Magento/OfflineShipping/Test/Unit/Model/Carrier/FlatrateTest.php:112

66) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilter with data set #0 ('rt.review_id') MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

67) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilter with data set #1 ('rt.created_at') MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

68) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilter with data set #2 ('rt.status_id') MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

69) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilter with data set #3 ('rdt.title') MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

70) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilter with data set #4 ('rdt.nickname') MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

71) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilter with data set #5 ('rdt.detail') MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

72) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilterWithAttributeStore MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

73) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilterWithAttributeType with data set #0 (1, array(Zend_Db_Expr Object (...)), array(0), true) MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

74) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilterWithAttributeType with data set #1 (2, array(0), null, false) MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

75) Magento\Review\Test\Unit\Model\ResourceModel\Review\Product\CollectionTest::testAddAttributeToFilterWithAttributeType with data set #2 (null, array(Zend_Db_Expr Object (...)), array(0), true) MAGETWO-59234: Code under the test depends on a virtual type which cannot be mocked.

/var/www/html/magento2-2.3.2/app/code/Magento/Review/Test/Unit/Model/ResourceModel/Review/Product/CollectionTest.php:37

76) Magento\Framework\Archive\Test\Unit\ZipTest::testPack Method pack contains dependency on \ZipArchive object

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Archive/Test/Unit/ZipTest.php:46

77) Magento\Framework\Archive\Test\Unit\ZipTest::testUnpack Method unpack contains dependency on \ZipArchive object

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Archive/Test/Unit/ZipTest.php:54

78) Magento\Framework\Lock\Test\Unit\Backend\ZookeeperTest::testConstructionWithPathException Test was skipped because php extension Zookeeper is not installed.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Lock/Test/Unit/Backend/ZookeeperTest.php:37

79) Magento\Framework\Lock\Test\Unit\Backend\ZookeeperTest::testConstructionWithHostException Test was skipped because php extension Zookeeper is not installed.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Lock/Test/Unit/Backend/ZookeeperTest.php:37

80) Magento\Framework\Lock\Test\Unit\Backend\ZookeeperTest::testConstructionWithoutException Test was skipped because php extension Zookeeper is not installed.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Lock/Test/Unit/Backend/ZookeeperTest.php:37

81) Magento\Framework\Session\Test\Unit\SessionManagerTest::testSessionManagerConstructor To be fixed in MAGETWO-34751

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/Session/Test/Unit/SessionManagerTest.php:55

82) Magento\Framework\View\Test\Unit\ContextTest::testGetCache Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

83) Magento\Framework\View\Test\Unit\ContextTest::testGetDesignPackage Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

84) Magento\Framework\View\Test\Unit\ContextTest::testGetEventManager Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

85) Magento\Framework\View\Test\Unit\ContextTest::testGetFrontController Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

86) Magento\Framework\View\Test\Unit\ContextTest::testGetLayout Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

87) Magento\Framework\View\Test\Unit\ContextTest::testGetRequest Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

88) Magento\Framework\View\Test\Unit\ContextTest::testGetSession Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

89) Magento\Framework\View\Test\Unit\ContextTest::testGetScopeConfig Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

90) Magento\Framework\View\Test\Unit\ContextTest::testGetTranslator Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

91) Magento\Framework\View\Test\Unit\ContextTest::testGetUrlBuilder Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

92) Magento\Framework\View\Test\Unit\ContextTest::testGetViewConfig Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

93) Magento\Framework\View\Test\Unit\ContextTest::testGetCacheState Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

94) Magento\Framework\View\Test\Unit\ContextTest::testGetLogger Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

95) Magento\Framework\View\Test\Unit\ContextTest::testGetAppState Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

96) Magento\Framework\View\Test\Unit\ContextTest::testGetArea Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

97) Magento\Framework\View\Test\Unit\ContextTest::testGetModuleName Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

98) Magento\Framework\View\Test\Unit\ContextTest::testGetFrontName Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

99) Magento\Framework\View\Test\Unit\ContextTest::testGetControllerName Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

100) Magento\Framework\View\Test\Unit\ContextTest::testGetActionName Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

101) Magento\Framework\View\Test\Unit\ContextTest::testGetFullActionName Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

102) Magento\Framework\View\Test\Unit\ContextTest::testGetAcceptType with data set #0 ('json', 'json') Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

103) Magento\Framework\View\Test\Unit\ContextTest::testGetAcceptType with data set #1 ('testjson', 'json') Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

104) Magento\Framework\View\Test\Unit\ContextTest::testGetAcceptType with data set #2 ('soap', 'soap') Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

105) Magento\Framework\View\Test\Unit\ContextTest::testGetAcceptType with data set #3 ('testsoap', 'soap') Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

106) Magento\Framework\View\Test\Unit\ContextTest::testGetAcceptType with data set #4 ('text/html', 'html') Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

107) Magento\Framework\View\Test\Unit\ContextTest::testGetAcceptType with data set #5 ('testtext/html', 'html') Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

108) Magento\Framework\View\Test\Unit\ContextTest::testGetAcceptType with data set #6 ('xml', 'xml') Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

109) Magento\Framework\View\Test\Unit\ContextTest::testGetAcceptType with data set #7 ('someElse', 'xml') Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

110) Magento\Framework\View\Test\Unit\ContextTest::testGetPost Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

111) Magento\Framework\View\Test\Unit\ContextTest::testGetQuery Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

112) Magento\Framework\View\Test\Unit\ContextTest::testGetParam Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

113) Magento\Framework\View\Test\Unit\ContextTest::testGetParams Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

114) Magento\Framework\View\Test\Unit\ContextTest::testGetHeader Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

115) Magento\Framework\View\Test\Unit\ContextTest::testContent Testcase needs to be refactored.

/var/www/html/magento2-2.3.2/lib/internal/Magento/Framework/View/Test/Unit/ContextTest.php:41

ERRORS! Tests: 21885, Assertions: 61096, Errors: 3, Failures: 3, Skipped: 115, Incomplete: 43.

mani513 commented 4 years ago

Hi @magento-engcom-team , Can you please help me to resolve my above errors.

qwerty7869 commented 4 years ago

Hi @magento-engcom-team

I am also facing this same issue. Could you please help us to resolve this issue.

m2-assistant[bot] commented 4 years ago

Hi @engcom-Charlie. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

magento-engcom-team commented 4 years ago

:white_check_mark: Confirmed by @engcom-Charlie Thank you for verifying the issue. Based on the provided information internal tickets MC-20166 were created

Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

m2-assistant[bot] commented 3 years ago

Hi @ihor-sviziev. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:


ihor-sviziev commented 3 years ago

Unfortunately tests still failing on 2.4-develop...

php -d memory_limit=-1 ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist

Here is the current output:

There were 13 warnings:

1) Magento\Customer\Test\Unit\Model\Renderer\RegionTest::testRender with data set "with no defined regions" (array())
Trying to set mock method "serialize" with addMethods(), but it exists in class "Magento\Framework\Data\Form\Element\AbstractElement". Use onlyMethods() for methods that exist in the class.

2) Magento\Customer\Test\Unit\Model\Renderer\RegionTest::testRender with data set "with defined regions" (array(Magento\Framework\DataObject Object (...), Magento\Framework\DataObject Object (...)))
Trying to set mock method "serialize" with addMethods(), but it exists in class "Magento\Framework\Data\Form\Element\AbstractElement". Use onlyMethods() for methods that exist in the class.

3) Magento\Downloadable\Test\Unit\Model\Link\UpdateHandlerTest::testExecute
Trying to configure method "getDownloadableProductLinks" which cannot be configured because it does not exist, has not been specified, is final, or is static

4) Magento\Downloadable\Test\Unit\Model\Link\UpdateHandlerTest::testExecuteNonDownloadable
Trying to configure method "getDownloadableProductLinks" which cannot be configured because it does not exist, has not been specified, is final, or is static

5) Magento\Downloadable\Test\Unit\Model\Sample\UpdateHandlerTest::testExecute
Trying to configure method "getDownloadableProductSamples" which cannot be configured because it does not exist, has not been specified, is final, or is static

6) Magento\Downloadable\Test\Unit\Model\Sample\UpdateHandlerTest::testExecuteNonDownloadable
Trying to configure method "getDownloadableProductSamples" which cannot be configured because it does not exist, has not been specified, is final, or is static

7) Magento\Downloadable\Test\Unit\Observer\IsAllowedGuestCheckoutObserverTest::testIsAllowedGuestCheckoutConfigSetToTrue with data set #0 ('downloadable', true)
Trying to configure method "getId" which cannot be configured because it does not exist, has not been specified, is final, or is static

8) Magento\Downloadable\Test\Unit\Observer\IsAllowedGuestCheckoutObserverTest::testIsAllowedGuestCheckoutConfigSetToTrue with data set #1 ('unknown', false)
Trying to configure method "getId" which cannot be configured because it does not exist, has not been specified, is final, or is static

9) Magento\Downloadable\Test\Unit\Observer\IsAllowedGuestCheckoutObserverTest::testIsAllowedGuestCheckoutConfigSetToFalse
Trying to configure method "getId" which cannot be configured because it does not exist, has not been specified, is final, or is static

10) Magento\Persistent\Test\Unit\Model\QuoteManagerTest::testSetGuest
Trying to configure method "setShippingAssignments" which cannot be configured because it does not exist, has not been specified, is final, or is static

11) Magento\ProductVideo\Test\Unit\Model\Product\Attribute\Media\ExternalVideoEntryConverterTest::testGetMediaEntryType
Trying to set mock method "setVideoContent" with onlyMethods, but it does not exist in class "Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryExtension". Use addMethods() for methods that don't exist in the class.

12) Magento\ProductVideo\Test\Unit\Model\Product\Attribute\Media\ExternalVideoEntryConverterTest::testConvertTo
Trying to set mock method "setVideoContent" with onlyMethods, but it does not exist in class "Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryExtension". Use addMethods() for methods that don't exist in the class.

13) Magento\ProductVideo\Test\Unit\Model\Product\Attribute\Media\ExternalVideoEntryConverterTest::testConvertFrom
Trying to set mock method "setVideoContent" with onlyMethods, but it does not exist in class "Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryExtension". Use addMethods() for methods that don't exist in the class.

--

There was 1 failure:

1) Magento\Customer\Test\Unit\Block\Widget\DobTest::testGetTranslatedCalendarConfigJson with data set #1 ('de_DE', array('Done', 'Prev', 'Next', 'Today', array('Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'), array('Jan.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sept.', 'Okt.', 'Nov.', 'Dez.'), array('Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'), array('So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'), array('So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.')), '{"closeText":"Done","prevText...Sa."]}')
Expectation failed for method name is "encode" when invoked 1 time(s)
Parameter 0 for invocation Magento\Framework\Json\EncoderInterface::encode(Array (...)) does not match expected value.
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    'closeText' => 'Done'
-    'prevText' => 'Prev'
-    'nextText' => 'Next'
-    'currentText' => 'Today'
+    'closeText' => Magento\Framework\Phrase Object (...)
+    'prevText' => Magento\Framework\Phrase Object (...)
+    'nextText' => Magento\Framework\Phrase Object (...)
+    'currentText' => Magento\Framework\Phrase Object (...)
     'monthNames' => Array (...)
     'monthNamesShort' => Array (
         0 => 'Jan.'
         1 => 'Feb.'
-        2 => 'März'
+        2 => 'Mär.'
         3 => 'Apr.'
         4 => 'Mai'
         5 => 'Juni'
         6 => 'Juli'
         7 => 'Aug.'
-        8 => 'Sept.'
+        8 => 'Sep.'
         9 => 'Okt.'
         10 => 'Nov.'
         11 => 'Dez.'

/var/www/html/app/code/Magento/Customer/Block/Widget/Dob.php:425
/var/www/html/app/code/Magento/Customer/Test/Unit/Block/Widget/DobTest.php:646

FAILURES!
Tests: 22212, Assertions: 61191, Failures: 1, Warnings: 13, Skipped: 182, Incomplete: 47.
kamarhassan commented 3 years ago

hi. I moved the website to another server but all command [ php bin/magento setup:upgrade , php bin/magento setup:static-content:deploy -f, and any other command ] on command putty command line . gives result

"check-requirements": false, "dump-autoload": false, "stub": "php-cs-fixer", "compactors": [ "KevinGH\\Box\\Compactor\\Json", "KevinGH\\Box\\Com[klinikomcom@37-148-208-177 public_html]$ any opinion how to solve this . please?????

DeryabinSergey commented 1 year ago

3 years after original post on fresh 2.4-develop is still actual

There were 30 errors:

1) Magento\Checkout\Test\Unit\Model\ShippingInformationManagementTest::testSaveAddressInformationWithLocalizedException
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:635
/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:243
/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:362

2) Magento\Checkout\Test\Unit\Model\ShippingInformationManagementTest::testSaveAddressInformationIfCanNotSaveQuote
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:635
/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:243
/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:428

3) Magento\Checkout\Test\Unit\Model\ShippingInformationManagementTest::testSaveAddressInformationIfCarrierCodeIsInvalid
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:635
/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:243
/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:491

4) Magento\Checkout\Test\Unit\Model\ShippingInformationManagementTest::testSaveAddressInformation
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:635
/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:243
/private/var/www/magento3/app/code/Magento/Checkout/Test/Unit/Model/ShippingInformationManagementTest.php:566

5) Magento\GiftMessage\Test\Unit\Model\Plugin\OrderGetTest::testAfterGetGiftMessageOnOrderLevel
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getGiftMessage" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderGetTest.php:282
/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderGetTest.php:110

6) Magento\GiftMessage\Test\Unit\Model\Plugin\OrderGetTest::testAfterGetGiftMessageOnItemLevel
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getGiftMessage" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderGetTest.php:282
/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderGetTest.php:110

7) Magento\GiftMessage\Test\Unit\Model\Plugin\OrderGetTest::testGetAfterWhenMessagesAreNotSet
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getGiftMessage" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderGetTest.php:282
/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderGetTest.php:110

8) Magento\GiftMessage\Test\Unit\Model\Plugin\OrderGetTest::testAfterGetList
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getGiftMessage" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderGetTest.php:282
/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderGetTest.php:110

9) Magento\GiftMessage\Test\Unit\Model\Plugin\OrderSaveTest::testAfterSaveGiftMessages
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getGiftMessage" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderSaveTest.php:202
/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderSaveTest.php:80

10) Magento\GiftMessage\Test\Unit\Model\Plugin\OrderSaveTest::testAfterSaveIfGiftMessagesNotExist
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getGiftMessage" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderSaveTest.php:202
/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderSaveTest.php:80

11) Magento\GiftMessage\Test\Unit\Model\Plugin\OrderSaveTest::testAfterSaveIfItemGiftMessagesNotExist
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getGiftMessage" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderSaveTest.php:202
/private/var/www/magento3/app/code/Magento/GiftMessage/Test/Unit/Model/Plugin/OrderSaveTest.php:80

12) Magento\Multishipping\Test\Unit\Model\DisableMultishippingTest::testExecuteWithMultishippingModeEnabled with data set "check_with_shipping_assignments" (true)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Multishipping/Test/Unit/Model/DisableMultishippingTest.php:125
/private/var/www/magento3/app/code/Magento/Multishipping/Test/Unit/Model/DisableMultishippingTest.php:64

13) Magento\Multishipping\Test\Unit\Model\DisableMultishippingTest::testExecuteWithMultishippingModeEnabled with data set "check_without_shipping_assignments" (false)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Multishipping/Test/Unit/Model/DisableMultishippingTest.php:125
/private/var/www/magento3/app/code/Magento/Multishipping/Test/Unit/Model/DisableMultishippingTest.php:64

14) Magento\Persistent\Test\Unit\Model\QuoteManagerTest::testSetGuest
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "setShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Persistent/Test/Unit/Model/QuoteManagerTest.php:432
/private/var/www/magento3/app/code/Magento/Persistent/Test/Unit/Model/QuoteManagerTest.php:260

15) Magento\Quote\Test\Unit\Model\ShippingAddressAssignmentTest::testSetAddressUseForShippingTrue
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "setShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Quote/Test/Unit/Model/ShippingAddressAssignmentTest.php:134
/private/var/www/magento3/app/code/Magento/Quote/Test/Unit/Model/ShippingAddressAssignmentTest.php:73

16) Magento\Quote\Test\Unit\Model\ShippingAddressAssignmentTest::testSetAddressUseForShippingFalse
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "setShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtension". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Quote/Test/Unit/Model/ShippingAddressAssignmentTest.php:134
/private/var/www/magento3/app/code/Magento/Quote/Test/Unit/Model/ShippingAddressAssignmentTest.php:73

17) Magento\Sales\Test\Unit\Model\OrderRepositoryTest::testGetList
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Sales/Test/Unit/Model/OrderRepositoryTest.php:259
/private/var/www/magento3/app/code/Magento/Sales/Test/Unit/Model/OrderRepositoryTest.php:142

18) Magento\Sales\Test\Unit\Model\OrderRepositoryTest::testSave
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Sales/Test/Unit/Model/OrderRepositoryTest.php:259
/private/var/www/magento3/app/code/Magento/Sales/Test/Unit/Model/OrderRepositoryTest.php:181

19) Magento\Sales\Test\Unit\Model\OrderRepositoryTest::testGet
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Sales/Test/Unit/Model/OrderRepositoryTest.php:259
/private/var/www/magento3/app/code/Magento/Sales/Test/Unit/Model/OrderRepositoryTest.php:221

20) Magento\SalesRule\Test\Unit\Model\ValidatorTest::testProcessShippingAmountNoRules
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:717
/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:516

21) Magento\SalesRule\Test\Unit\Model\ValidatorTest::testProcessShippingAmountProcessDisabled
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:717
/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:539

22) Magento\SalesRule\Test\Unit\Model\ValidatorTest::testProcessShippingAmountActions with data set #0 ('to_percent', 50, 2.5)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:717
/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:592

23) Magento\SalesRule\Test\Unit\Model\ValidatorTest::testProcessShippingAmountActions with data set #1 ('by_percent', 50, 2.5)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:717
/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:592

24) Magento\SalesRule\Test\Unit\Model\ValidatorTest::testProcessShippingAmountActions with data set #2 ('to_fixed', 5, 0)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:717
/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:592

25) Magento\SalesRule\Test\Unit\Model\ValidatorTest::testProcessShippingAmountActions with data set #3 ('by_fixed', 5, 5)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:717
/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:592

26) Magento\SalesRule\Test\Unit\Model\ValidatorTest::testProcessShippingAmountActions with data set #4 ('cart_fixed', 5, 0)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:717
/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:592

27) Magento\SalesRule\Test\Unit\Model\ValidatorTest::testProcessShippingAmountWithFullFixedPercentDiscount with data set "verify shipping discount when shipping amount is greater than zero" ('by_percent', 100.0, 5.0, 5.0, 10.0)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:717
/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:663

28) Magento\SalesRule\Test\Unit\Model\ValidatorTest::testProcessShippingAmountWithFullFixedPercentDiscount with data set "verify shipping discount when shipping amount is zero" ('by_percent', 100.0, 5.0, 0, 10.0)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getShippingAssignments" with addMethods(), but it exists in class "Magento\Quote\Api\Data\CartExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:717
/private/var/www/magento3/app/code/Magento/SalesRule/Test/Unit/Model/ValidatorTest.php:663

29) Magento\Tax\Test\Unit\Model\Plugin\OrderSaveTest::testAfterSave with data set "item_with_shipping_three_tax" (array(array(0.66, 0.66, 11, 'ILUS', array(array(array(6, 'IL', 'IL'), array(5, 'US', 'US')))), array(0.2, 0.2, 3.33, 'CityTax', array(array(array(3, 'CityTax', 'CityTax'))))), array(array(151, 'product', null, array(array(0.11, 0.11, 11, 'ILUS', array(array(array(6, 'IL', 'IL'), array(5, 'US', 'US')))), array(0.03, 0.03, 3.33, 'CityTax', array(array(array(3, 'CityTax', 'CityTax')))))), array(null, 'shipping', null, array(array(0.55, 0.55, 11, 'ILUS', array(array(array(6, 'IL', 'IL'), array(5, 'US', 'US')))), array(0.17, 0.17, 3.33, 'CityTax', array(array(array(3, 'CityTax', 'CityTax'))))))), array(array(123, 'IL', 'IL', 0, 6, 0, 0, 0.66, 0.66, 0, 0.36), array(123, 'US', 'US', 0, 5, 0, 0, 0.66, 0.66, 0, 0.3), array(123, 'CityTax', 'CityTax', 0, 3, 0, 0, 0.2, 0.2, 0, 0.18018018018018)), array(array(116, '35', 6, null, 0.11, 0.11, 0.06, 0.06, 'product'), array(null, '35', 6, null, 0.55, 0.55, 0.3, 0.3, 'shipping'), array(116, '36', 5, null, 0.11, 0.11, 0.05, 0.05, 'product'), array(null, '36', 5, null, 0.55, 0.55, 0.25, 0.25, 'shipping'), array(116, '37', 3.33, null, 0.03, 0.03, 0.03, 0.03, 'product'), array(null, '37', 3.33, null, 0.17, 0.17, 0.17, 0.17, 'shipping')), 116)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getAppliedTaxes" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Tax/Test/Unit/Model/Plugin/OrderSaveTest.php:113
/private/var/www/magento3/app/code/Magento/Tax/Test/Unit/Model/Plugin/OrderSaveTest.php:202

30) Magento\Tax\Test\Unit\Model\Plugin\OrderSaveTest::testAfterSave with data set "associated_item_with_empty_order_quote_item" (array(array(0.66, 0.66, 11, 'ILUS', array(array(array(6, 'IL', 'IL'), array(5, 'US', 'US')))), array(0.2, 0.2, 3.33, 'CityTax', array(array(array(3, 'CityTax', 'CityTax'))))), array(array(null, 'product', 151, array(array(0.11, 0.11, 11, 'ILUS', array(array(array(6, 'IL', 'IL'), array(5, 'US', 'US')))), array(0.03, 0.03, 3.33, 'CityTax', array(array(array(3, 'CityTax', 'CityTax')))))), array(null, 'shipping', null, array(array(0.55, 0.55, 11, 'ILUS', array(array(array(6, 'IL', 'IL'), array(5, 'US', 'US')))), array(0.17, 0.17, 3.33, 'CityTax', array(array(array(3, 'CityTax', 'CityTax'))))))), array(array(123, 'IL', 'IL', 0, 6, 0, 0, 0.66, 0.66, 0, 0.36), array(123, 'US', 'US', 0, 5, 0, 0, 0.66, 0.66, 0, 0.3), array(123, 'CityTax', 'CityTax', 0, 3, 0, 0, 0.2, 0.2, 0, 0.18018018018018)), array(array(null, '35', 6, null, 0.11, 0.11, 0.06, 0.06, 'product'), array(null, '35', 6, null, 0.55, 0.55, 0.3, 0.3, 'shipping'), array(null, '36', 5, null, 0.11, 0.11, 0.05, 0.05, 'product'), array(null, '36', 5, null, 0.55, 0.55, 0.25, 0.25, 'shipping'), array(null, '37', 3.33, null, 0.03, 0.03, 0.03, 0.03, 'product'), array(null, '37', 3.33, null, 0.17, 0.17, 0.17, 0.17, 'shipping')), null)
PHPUnit\Framework\MockObject\CannotUseAddMethodsException: Trying to configure method "getAppliedTaxes" with addMethods(), but it exists in class "Magento\Sales\Api\Data\OrderExtensionInterface". Use onlyMethods() for methods that exist in the class

/private/var/www/magento3/app/code/Magento/Tax/Test/Unit/Model/Plugin/OrderSaveTest.php:113
/private/var/www/magento3/app/code/Magento/Tax/Test/Unit/Model/Plugin/OrderSaveTest.php:202
Nurgiel commented 2 months ago

Magento 2.4.7 Commerce PHP 8.2, 4 years after original post

I'm getting 282 errors with: Trying to configure method "XXX" with addMethods(), but it exists in class "Magento\...\SomeInterface". Use onlyMethods() for methods that exist in the class

Feels like the number of errors is growing instead of decreasing.