@@ -38,24 +38,28 @@ public function testRule(): void
3838 // each error consists of the asserted error message, and the asserted error file line
3939 $ this ->analyse ([__DIR__ . '/Fake/FailingEntityUseLogic.php ' ], [
4040 [
41- 'Array access to entity to App\Model\Entity\Note is not allowed, access as object instead ' ,
42- 23 , // asserted error line
41+ 'Array access to entity App\Model\Entity\Note is not allowed, access as object instead ' ,
42+ 24 , // asserted error line
4343 ],
4444 [
45- 'Array access to entity to App\Model\Entity\Note is not allowed, access as object instead ' ,
46- 24 , // asserted error line
45+ 'Array access to entity App\Model\Entity\Note is not allowed, access as object instead ' ,
46+ 25 , // asserted error line
47+ ],
48+ [
49+ 'Array access to entity App\Model\Entity\Note is not allowed, access as object instead ' ,
50+ 27 , // asserted error line
4751 ],
4852 [
49- 'Array access to entity to Cake\Datasource\EntityInterface is not allowed, access as object instead ' ,
50- 29 ,
53+ 'Array access to entity Cake\Datasource\EntityInterface is not allowed, access as object instead ' ,
54+ 36 ,
5155 ],
5256 [
53- 'Array access to entity to App\Model\Entity\User is not allowed, access as object instead ' ,
54- 31 , // asserted error line
57+ 'Array access to entity App\Model\Entity\User is not allowed, access as object instead ' ,
58+ 38 , // asserted error line
5559 ],
5660 [
57- 'Array access to entity to App\Model\Entity\Note is not allowed, access as object instead ' ,
58- 37 , // asserted error line
61+ 'Array access to entity App\Model\Entity\Note is not allowed, access as object instead ' ,
62+ 44 , // asserted error line
5963 ],
6064 ]);
6165 }
0 commit comments