Skip to content

Commit eea6126

Browse files
committed
Fix static tests.
1 parent 71effbe commit eea6126

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,5 +1719,4 @@ public function removeAllFieldsFromSelect()
17191719
{
17201720
return $this->removeAttributeToSelect();
17211721
}
1722-
17231722
}

dev/tests/integration/testsuite/Magento/Customer/Block/Adminhtml/Edit/Tab/View/CartTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Customer\Block\Adminhtml\Edit\Tab\View;
78

89
use Magento\Customer\Controller\RegistryConstants;

lib/internal/Magento/Framework/Data/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Framework\Data;
78

89
use Magento\Framework\Data\Collection\EntityFactoryInterface;
@@ -401,6 +402,7 @@ public function addItem(\Magento\Framework\DataObject $item)
401402

402403
if ($itemId !== null) {
403404
if (isset($this->_items[$itemId])) {
405+
//phpcs:ignore Magento2.Exceptions.DirectThrow
404406
throw new \Exception(
405407
'Item (' . get_class($item) . ') with the same ID "' . $item->getId() . '" already exists.'
406408
);

0 commit comments

Comments
 (0)