@@ -175,6 +175,8 @@ protected function setUp(): void
175
175
*/
176
176
public function testSaveDoesNotDoAnythingIfGroupsAreNotPassed (): void
177
177
{
178
+ $ this ->appConfigMock ->expects ($ this ->never ())
179
+ ->method ('reinit ' );
178
180
$ this ->configLoaderMock ->expects ($ this ->never ())->method ('getConfigByPath ' );
179
181
$ this ->model ->save ();
180
182
}
@@ -184,6 +186,8 @@ public function testSaveDoesNotDoAnythingIfGroupsAreNotPassed(): void
184
186
*/
185
187
public function testSaveEmptiesNonSetArguments (): void
186
188
{
189
+ $ this ->appConfigMock ->expects ($ this ->never ())
190
+ ->method ('reinit ' );
187
191
$ this ->structureReaderMock ->expects ($ this ->never ())->method ('getConfiguration ' );
188
192
$ this ->assertNull ($ this ->model ->getSection ());
189
193
$ this ->assertNull ($ this ->model ->getWebsite ());
@@ -199,6 +203,8 @@ public function testSaveEmptiesNonSetArguments(): void
199
203
*/
200
204
public function testSaveToCheckAdminSystemConfigChangedSectionEvent (): void
201
205
{
206
+ $ this ->appConfigMock ->expects ($ this ->exactly (2 ))
207
+ ->method ('reinit ' );
202
208
$ transactionMock = $ this ->createMock (Transaction::class);
203
209
204
210
$ this ->transFactoryMock ->expects ($ this ->any ())->method ('create ' )->willReturn ($ transactionMock );
@@ -227,6 +233,8 @@ public function testSaveToCheckAdminSystemConfigChangedSectionEvent(): void
227
233
*/
228
234
public function testDoNotSaveReadOnlyFields (): void
229
235
{
236
+ $ this ->appConfigMock ->expects ($ this ->exactly (2 ))
237
+ ->method ('reinit ' );
230
238
$ transactionMock = $ this ->createMock (Transaction::class);
231
239
$ this ->transFactoryMock ->expects ($ this ->any ())->method ('create ' )->willReturn ($ transactionMock );
232
240
@@ -265,6 +273,8 @@ public function testDoNotSaveReadOnlyFields(): void
265
273
*/
266
274
public function testSaveToCheckScopeDataSet (): void
267
275
{
276
+ $ this ->appConfigMock ->expects ($ this ->exactly (2 ))
277
+ ->method ('reinit ' );
268
278
$ transactionMock = $ this ->createMock (Transaction::class);
269
279
$ this ->transFactoryMock ->expects ($ this ->any ())->method ('create ' )->willReturn ($ transactionMock );
270
280
0 commit comments