Skip to content

Commit eb17063

Browse files
authored
Added sniff for deprecated model methods
Add few negative cases
1 parent a5b3723 commit eb17063

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Magento2/Tests/Methods/DeprecatedModelMethodUnitTest.inc

+6
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ $model->getResource()->save($model);
55
$model->getResource()->load($model, $id);
66

77
$model->getResource()->delete($model);
8+
9+
$model->getResource()->myCustomMethod();
10+
11+
$model->myCustomMethod();
12+
13+
$model->anotherMethodWithResource()->save($model);

0 commit comments

Comments
 (0)