File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,14 @@ public function testFindStatementsByCriteria()
70
70
public function testSave ()
71
71
{
72
72
$ statement = StatementFixtures::getMinimalStatement ();
73
+ $ self = $ this ;
73
74
$ this
74
75
->mappedStatementRepository
75
76
->expects ($ this ->once ())
76
77
->method ('storeMappedStatement ' )
77
78
->with (
78
- $ this ->callback (function (MappedStatement $ mappedStatement ) use ($ statement ) {
79
- return $ this ->assertMappedStatement (
79
+ $ this ->callback (function (MappedStatement $ mappedStatement ) use ($ self , $ statement ) {
80
+ return $ self ->assertMappedStatement (
80
81
MappedStatement::createFromModel ($ statement ),
81
82
$ mappedStatement
82
83
);
@@ -90,13 +91,14 @@ public function testSave()
90
91
public function testSaveWithoutFlush ()
91
92
{
92
93
$ statement = StatementFixtures::getMinimalStatement ();
94
+ $ self = $ this ;
93
95
$ this
94
96
->mappedStatementRepository
95
97
->expects ($ this ->once ())
96
98
->method ('storeMappedStatement ' )
97
99
->with (
98
- $ this ->callback (function (MappedStatement $ mappedStatement ) use ($ statement ) {
99
- return $ this ->assertMappedStatement (
100
+ $ this ->callback (function (MappedStatement $ mappedStatement ) use ($ self , $ statement ) {
101
+ return $ self ->assertMappedStatement (
100
102
MappedStatement::createFromModel ($ statement ),
101
103
$ mappedStatement
102
104
);
You can’t perform that action at this time.
0 commit comments