File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,12 @@ class AbstractResourceTest extends \PHPUnit\Framework\TestCase
22
22
*/
23
23
private $ serializerMock ;
24
24
25
- /**
26
- * @var \Psr\Log\LoggerInterface|\PHPUnit_Framework_MockObject_MockObject
27
- */
28
- private $ loggerMock ;
29
-
30
25
protected function setUp ()
31
26
{
32
27
$ objectManager = new ObjectManager ($ this );
33
28
$ this ->serializerMock = $ this ->createMock (Json::class);
34
- $ this ->loggerMock = $ this ->createMock (\Psr \Log \LoggerInterface::class);
35
29
$ this ->abstractResource = $ objectManager ->getObject (AbstractResourceStub::class);
36
30
$ objectManager ->setBackwardCompatibleProperty ($ this ->abstractResource , 'serializer ' , $ this ->serializerMock );
37
- $ objectManager ->setBackwardCompatibleProperty ($ this ->abstractResource , '_logger ' , $ this ->loggerMock );
38
31
}
39
32
40
33
/**
@@ -221,8 +214,6 @@ function () {
221
214
$ connection ->expects ($ this ->once ())
222
215
->method ('getTransactionLevel ' )
223
216
->willReturn (0 );
224
- $ this ->loggerMock ->expects ($ this ->once ())
225
- ->method ('critical ' );
226
217
227
218
$ this ->abstractResource ->commit ();
228
219
}
You can’t perform that action at this time.
0 commit comments