Skip to content

Commit 09819ae

Browse files
committed
ACP2E-4019: CE copyright updates for 2.4.9-beta1
1 parent f22b64f commit 09819ae

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Adapter/Less/ProcessorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ class ProcessorTest extends TestCase
6363
*/
6464
protected function setUp(): void
6565
{
66-
$this->loggerMock = $this->getMockBuilder(LoggerInterface::class)
67-
->getMockForAbstractClass();
66+
$this->loggerMock = $this->createMock(LoggerInterface::class);
6867
$this->appStateMock = $this->getMockBuilder(State::class)
6968
->disableOriginalConstructor()
7069
->getMock();

lib/internal/Magento/Framework/Css/Test/Unit/PreProcessor/Adapter/Less/_file/test-developer.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2024 Adobe
2+
* Copyright 2015 Adobe
33
* All Rights Reserved.
44
*/
55
body {

lib/internal/Magento/Framework/TestFramework/Test/Unit/Unit/Utility/XsdValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testInvalidXml()
4646
// @codingStandardsIgnoreStart
4747
$expected = [
4848
"Element 'block', attribute 'type': The attribute 'type' is not allowed.\nLine: 9\nThe xml was: \n" .
49-
"4: * See COPYING.txt for license details.\n5: */\n6:-->\n" .
49+
"4: * All Rights Reserved.\n5: */\n6:-->\n" .
5050
"7:<config xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:TestFramework/Test/Unit/Unit/Utility/_files/valid.xsd\">\n" .
5151
"8: <block type=\"some_name\">\n9: <actions attribute=\"testName\"/>\n10: </block>\n11:</config>\n12:\n",
5252
"Element 'actions': This element is not expected. Expected is ( property ).\nLine: 10\nThe xml was: \n" .

lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,9 @@ class MinifierTest extends TestCase
5656
*/
5757
protected function setUp(): void
5858
{
59-
$this->htmlDirectoryMock = $this->getMockBuilder(WriteInterface::class)
60-
->getMockForAbstractClass();
61-
$this->appDirectoryMock = $this->getMockBuilder(ReadInterface::class)
62-
->getMockForAbstractClass();
63-
$this->rootDirectoryMock = $this->getMockBuilder(ReadInterface::class)
64-
->getMockForAbstractClass();
59+
$this->htmlDirectoryMock = $this->createMock(WriteInterface::class);
60+
$this->appDirectoryMock = $this->createMock(ReadInterface::class);
61+
$this->rootDirectoryMock = $this->createMock(ReadInterface::class);
6562
$this->filesystemMock = $this->getMockBuilder(Filesystem::class)
6663
->disableOriginalConstructor()
6764
->getMock();
@@ -242,7 +239,7 @@ public function testGetMinified(): void
242239
$file = '/absolute/path/to/phtml/template/file';
243240
$relativeGeneratedPath = 'absolute/path/to/phtml/template/file';
244241

245-
$htmlDriver = $this->getMockForAbstractClass(DriverInterface::class);
242+
$htmlDriver = $this->createMock(DriverInterface::class);
246243
$htmlDriver
247244
->expects($this->once())
248245
->method('getRealPathSafety')

lib/internal/Magento/Framework/View/Test/Unit/TemplateEngine/Xhtml/TemplateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function setUp(): void
2828
{
2929
parent::setUp();
3030
$this->model = new Template(
31-
$this->getMockForAbstractClass(LoggerInterface::class),
31+
$this->createMock(LoggerInterface::class),
3232
file_get_contents(__DIR__ . '/../_files/simple.xml')
3333
);
3434
}

0 commit comments

Comments
 (0)