Skip to content

Commit 751b1ca

Browse files
committed
37550: implement suggested changes
1 parent b14cd9f commit 751b1ca

File tree

2 files changed

+10
-8
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/Api/SearchCriteria/CollectionProcessor
  • lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor

2 files changed

+10
-8
lines changed

dev/tests/integration/testsuite/Magento/Framework/Api/SearchCriteria/CollectionProcessor/JoinProcessorTest.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2023 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -10,18 +10,20 @@
1010
use Magento\Framework\Api\SearchCriteria\CollectionProcessor\JoinProcessor\CustomJoinInterface;
1111
use Magento\Framework\Api\SearchCriteriaBuilder;
1212
use Magento\Framework\Data\Collection\AbstractDb;
13+
use Magento\Framework\ObjectManagerInterface;
14+
use Magento\TestFramework\Helper\Bootstrap;
1315
use PHPUnit\Framework\TestCase;
1416

1517
class JoinProcessorTest extends TestCase
1618
{
1719
/**
18-
* @var \Magento\Framework\ObjectManagerInterface
20+
* @var ObjectManagerInterface
1921
*/
2022
private $objectManager;
2123

2224
protected function setUp(): void
2325
{
24-
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
26+
$this->objectManager = Bootstrap::getObjectManager();
2527
}
2628

2729
/**
@@ -52,11 +54,11 @@ public function testMultipleCollections(): void
5254

5355
$collection1 = $this->getMockBuilder(AbstractDb::class)
5456
->disableOriginalConstructor()
55-
->getMockForAbstractClass();
57+
->getMock();
5658

5759
$collection2 = $this->getMockBuilder(AbstractDb::class)
5860
->disableOriginalConstructor()
59-
->getMockForAbstractClass();
61+
->getMock();
6062

6163
$joinProcessor->process($searchCriteria, $collection1);
6264
$joinProcessor->process($searchCriteria, $collection2);

lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/JoinProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2016 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Framework\Api\SearchCriteria\CollectionProcessor;
77

0 commit comments

Comments
 (0)