File tree Expand file tree Collapse file tree 3 files changed +30
-180
lines changed
app/code/Magento/AsynchronousOperations
Model/ResourceModel/Operation Expand file tree Collapse file tree 3 files changed +30
-180
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \AsynchronousOperations \Model \ResourceModel \Operation as OperationResourceModel ;
11
11
12
12
/**
13
- * Class Collection
13
+ * Class Collection for Magento Operation table
14
14
* @codeCoverageIgnore
15
15
*/
16
16
class Collection extends \Magento \Framework \Model \ResourceModel \Db \Collection \AbstractCollection
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Magento \AsynchronousOperations \Test \Unit \Model \ResourceModel \Operation ;
4
+
5
+ use Magento \AsynchronousOperations \Model \ResourceModel \Operation as OperationResourceModel ;
6
+ use Magento \TestFramework \Helper \Bootstrap ;
7
+ use PHPUnit \Framework \TestCase ;
8
+ use Magento \AsynchronousOperations \Model \ResourceModel \Operation \CollectionFactory as OperationCollectionFactory ;
9
+
10
+ class CollectionTest extends TestCase
11
+ {
12
+ /**
13
+ * @return void
14
+ */
15
+ public function testSetIdFieldNameValue (): void
16
+ {
17
+ $ objectManager = Bootstrap::getObjectManager ();
18
+ $ classObject = $ objectManager ->create (
19
+ OperationCollectionFactory::class,
20
+ [
21
+ Bootstrap::getObjectManager ()
22
+ ]
23
+ );
24
+ $ this ->assertNotNull ($ classObject );
25
+ $ collection = $ classObject ->create ();
26
+ $ this ->assertNotNull ($ collection );
27
+ $ this ->assertEquals (OperationResourceModel::TABLE_PRIMARY_KEY , $ collection ->getIdFieldName ());
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments