@@ -59,7 +59,7 @@ protected function setUp()
59
59
/**
60
60
* @return void
61
61
*/
62
- public function testAroundSave (): void
62
+ public function testAfterSave (): void
63
63
{
64
64
$ resource = $ this ->getMockBuilder (AbstractResource::class)
65
65
->disableOriginalConstructor ()
@@ -69,11 +69,9 @@ public function testAroundSave(): void
69
69
->getMockForAbstractClass ();
70
70
$ this ->tagResolver ->expects ($ this ->atLeastOnce ())->method ('getTags ' )->with ($ model )->willReturn ([]);
71
71
72
- $ result = $ this ->plugin ->aroundSave (
72
+ $ result = $ this ->plugin ->afterSave (
73
+ $ resource ,
73
74
$ resource ,
74
- function () use ($ resource ) {
75
- return $ resource ;
76
- },
77
75
$ model
78
76
);
79
77
@@ -83,7 +81,7 @@ function () use ($resource) {
83
81
/**
84
82
* @return void
85
83
*/
86
- public function testAroundDelete (): void
84
+ public function testAfterDelete (): void
87
85
{
88
86
$ resource = $ this ->getMockBuilder (AbstractResource::class)
89
87
->disableOriginalConstructor ()
@@ -93,11 +91,9 @@ public function testAroundDelete(): void
93
91
->getMockForAbstractClass ();
94
92
$ this ->tagResolver ->expects ($ this ->atLeastOnce ())->method ('getTags ' )->with ($ model )->willReturn ([]);
95
93
96
- $ result = $ this ->plugin ->aroundDelete (
94
+ $ result = $ this ->plugin ->afterDelete (
95
+ $ resource ,
97
96
$ resource ,
98
- function () use ($ resource ) {
99
- return $ resource ;
100
- },
101
97
$ model
102
98
);
103
99
0 commit comments