File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
app/code/Magento/MessageQueue Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2017 Adobe
4+ * All Rights Reserved .
55 */
66namespace Magento \MessageQueue \Model \Cron ;
77
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2017 Adobe
4+ * All Rights Reserved .
55 */
66declare (strict_types=1 );
77
1818use PHPUnit \Framework \MockObject \MockObject ;
1919use PHPUnit \Framework \TestCase ;
2020use Symfony \Component \Process \PhpExecutableFinder ;
21+ use Psr \Log \LoggerInterface ;
2122
2223/**
2324 * Unit tests for ConsumersRunner.
@@ -64,6 +65,11 @@ class ConsumersRunnerTest extends TestCase
6465 */
6566 private $ consumersRunner ;
6667
68+ /**
69+ * @var LoggerInterface
70+ */
71+ private $ loggerMock ;
72+
6773 /**
6874 * {@inheritdoc}
6975 */
@@ -89,14 +95,18 @@ protected function setUp(): void
8995 ->getMock ();
9096 $ this ->connectionTypeResolver ->method ('getConnectionType ' )->willReturn ('something ' );
9197
98+ $ this ->loggerMock = $ this ->getMockBuilder (LoggerInterface::class)
99+ ->disableOriginalConstructor ()
100+ ->getMock ();
101+
92102 $ this ->consumersRunner = new ConsumersRunner (
93103 $ this ->phpExecutableFinderMock ,
94104 $ this ->consumerConfigMock ,
95105 $ this ->deploymentConfigMock ,
96106 $ this ->shellBackgroundMock ,
97107 $ this ->lockManagerMock ,
98108 $ this ->connectionTypeResolver ,
99- null ,
109+ $ this -> loggerMock ,
100110 $ this ->checkIsAvailableMessagesMock
101111 );
102112 }
You can’t perform that action at this time.
0 commit comments