File tree Expand file tree Collapse file tree 5 files changed +8
-12
lines changed
lib/internal/Magento/Framework
Css/Test/Unit/PreProcessor/Adapter/Less
TestFramework/Test/Unit/Unit/Utility Expand file tree Collapse file tree 5 files changed +8
-12
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff line change 11/**
2- * Copyright 2024 Adobe
2+ * Copyright 2015 Adobe
33 * All Rights Reserved.
44 */
55body {
Original file line number Diff line number Diff 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" .
Original file line number Diff line number Diff 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 ' )
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments