15
15
use PHPUnit \Framework \TestCase ;
16
16
use Psr \Log \LoggerInterface ;
17
17
18
+ /**
19
+ * Test for \Magento\Framework\Model\ResourceModel\AbstractResource.
20
+ */
18
21
class AbstractResourceTest extends TestCase
19
22
{
20
23
/**
@@ -32,16 +35,17 @@ class AbstractResourceTest extends TestCase
32
35
*/
33
36
private $ loggerMock ;
34
37
38
+ /**
39
+ * @inheritdoc
40
+ */
35
41
protected function setUp (): void
36
-
37
42
{
38
43
$ objectManager = new ObjectManager ($ this );
39
- $ this ->model = $ objectManager ->getObject (AbstractResourceStub::class);
40
44
$ this ->serializerMock = $ this ->createMock (Json::class);
41
45
$ this ->loggerMock = $ this ->getMockForAbstractClass (LoggerInterface::class);
42
- $ this ->abstractResource = $ objectManager ->getObject (AbstractResourceStub::class);
43
- $ objectManager ->setBackwardCompatibleProperty ($ this ->abstractResource , 'serializer ' , $ this ->serializerMock );
44
- $ objectManager ->setBackwardCompatibleProperty ($ this ->abstractResource , '_logger ' , $ this ->loggerMock );
46
+ $ this ->model = $ objectManager ->getObject (AbstractResourceStub::class);
47
+ $ objectManager ->setBackwardCompatibleProperty ($ this ->model , 'serializer ' , $ this ->serializerMock );
48
+ $ objectManager ->setBackwardCompatibleProperty ($ this ->model , '_logger ' , $ this ->loggerMock );
45
49
}
46
50
47
51
/**
@@ -187,8 +191,12 @@ public function unserializeFieldsDataProvider(): array
187
191
];
188
192
}
189
193
190
-
191
- public function testCommitZeroLevel ()
194
+ /**
195
+ * Commit zero level
196
+ *
197
+ * @return void
198
+ */
199
+ public function testCommitZeroLevel (): void
192
200
{
193
201
/** @var AdapterInterface|MockObject $connection */
194
202
$ connection = $ this ->getMockForAbstractClass (AdapterInterface::class);
0 commit comments