Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Broken integration test Magento\Catalog\Controller\Product\CompareTest #48

Closed
buskamuza opened this issue Feb 17, 2018 · 0 comments
Closed
Assignees

Comments

@buskamuza
Copy link
Contributor

buskamuza commented Feb 17, 2018

8) Magento\Catalog\Controller\Product\CompareTest::testAddAction
PHPUnit\Framework\Exception: Notice: Undefined offset: 0 in /home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816.
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/bootstrap.php:130
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:1116
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:226
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:89
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:167
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:37
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:308
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:199
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:35
9) Magento\Catalog\Controller\Product\CompareTest::testIndexActionAddProducts
PHPUnit\Framework\Exception: Notice: Undefined offset: 0 in /home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816.
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/bootstrap.php:130
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:1116
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:226
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:89
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:167
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:37
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:308
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:199
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:60
10) Magento\Catalog\Controller\Product\CompareTest::testRemoveAction
PHPUnit\Framework\Exception: Notice: Undefined offset: 0 in /home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816.
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/bootstrap.php:130
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:1116
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:226
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:89
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:167
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:37
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:308
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:231
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:71
11) Magento\Catalog\Controller\Product\CompareTest::testRemoveActionWithSession
PHPUnit\Framework\Exception: Notice: Undefined offset: 0 in /home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816.
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/bootstrap.php:130
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:1116
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:226
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:89
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:167
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:37
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:308
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:289
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:87
12) Magento\Catalog\Controller\Product\CompareTest::testIndexActionDisplay
PHPUnit\Framework\Exception: Notice: Undefined offset: 0 in /home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816.
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/bootstrap.php:130
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:1116
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:226
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:89
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:167
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:37
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:308
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:231
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:104
13) Magento\Catalog\Controller\Product\CompareTest::testClearAction
PHPUnit\Framework\Exception: Notice: Undefined offset: 0 in /home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816.
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/bootstrap.php:130
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:1116
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:226
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:89
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php:167
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection/Interceptor.php:37
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:308
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:231
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:130
14) Magento\Catalog\Controller\Product\CompareTest::testRemoveActionProductNameXss
PHPUnit\Framework\Exception: Notice: Undefined offset: 0 in /home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816.
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/bootstrap.php:130
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php:816
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Reports/Model/ResourceModel/Product/Index/Compared/Collection/Interceptor.php:1051
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Reports/Model/ResourceModel/Product/Index/Collection/AbstractCollection.php:126
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Reports/Model/ResourceModel/Product/Index/Collection/AbstractCollection.php:140
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Reports/Model/ResourceModel/Product/Index/Compared/Collection/Interceptor.php:24
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Reports/Model/Product/Index/AbstractIndex.php:199
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Reports/Observer/CatalogProductCompareClearObserver.php:40
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Event/Invoker/InvokerDefault.php:72
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Event/Invoker/InvokerDefault.php:60
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Event/Manager.php:66
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Framework/Event/Manager/Proxy.php:95
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Catalog/Controller/Product/Compare/Remove.php:52
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Controller/Product/Compare/Remove/Interceptor.php:24
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/App/Action/Action.php:107
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Interception/Interceptor.php:58
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Interception/Interceptor.php:138
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Interception/Interceptor.php:153
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Catalog/Controller/Product/Compare/Remove/Interceptor.php:52
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/App/FrontController.php:55
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Interception/Interceptor.php:58
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Interception/Interceptor.php:138
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/Store/App/FrontController/Plugin/RequestPreprocessor.php:94
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Interception/Interceptor.php:135
/home/travis/build/magento-engcom/php-7.2-support/app/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin.php:69
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Interception/Interceptor.php:135
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/Interception/Interceptor.php:153
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Framework/App/FrontController/Interceptor.php:26
/home/travis/build/magento-engcom/php-7.2-support/lib/internal/Magento/Framework/App/Http.php:135
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/tmp/sandbox-0-c4b5b25471e569aacd36194c2bad027e/generated/code/Magento/Framework/App/Http/Interceptor.php:24
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/Magento/TestFramework/Application.php:449
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/Magento/TestFramework/Helper/Bootstrap.php:117
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/framework/Magento/TestFramework/TestCase/AbstractController.php:100
/home/travis/build/magento-engcom/php-7.2-support/dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/CompareTest.php:151

See https://travis-ci.org/magento-engcom/php-7.2-support/jobs/342577321#L1214

@joanhe joanhe self-assigned this Mar 14, 2018
@joanhe joanhe closed this as completed Mar 28, 2018
@buskamuza buskamuza reopened this Mar 29, 2018
magento-engcom-team pushed a commit that referenced this issue May 31, 2018
Include 'products' in category query
magento-engcom-team pushed a commit that referenced this issue May 31, 2018
- Fixed test in case when indexer mode is 'on schedule'
magento-team pushed a commit that referenced this issue Aug 27, 2018
MAGETWO-66666: Adding a product to cart from category page with an ex…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants