@@ -72,7 +72,7 @@ class ShowUpdateResultTest extends TestCase
7272
7373 /**
7474 * @inheritdoc
75- *
75+ *
7676 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
7777 */
7878 protected function setUp (): void
@@ -99,7 +99,7 @@ protected function setUp(): void
9999 $ request ->expects ($ this ->any ())
100100 ->method ('has ' )
101101 ->willReturn (false );
102-
102+
103103 $ this ->context ->expects ($ this ->any ())
104104 ->method ('getRequest ' )
105105 ->willReturn ($ request );
@@ -436,43 +436,4 @@ public function testExecuteWithNonCompressedArrayData(): void
436436 $ result = $ this ->controller ->execute ();
437437 $ this ->assertInstanceOf (Raw::class, $ result );
438438 }
439-
440- /**
441- * Test execute with corrupted compressed data
442- *
443- * @return void
444- */
445- public function testExecuteWithCorruptedCompressedData (): void
446- {
447- $ sessionData = [
448- 'compressed ' => true ,
449- 'data ' => 'not-actually-compressed-data '
450- ];
451-
452- // Session has corrupted compressed data
453- $ this ->session ->expects ($ this ->once ())
454- ->method ('hasUpdateResult ' )
455- ->willReturn (true );
456-
457- $ this ->session ->expects ($ this ->once ())
458- ->method ('getUpdateResult ' )
459- ->willReturn ($ sessionData );
460-
461- // Result should be created with empty content (gzdecode returns false)
462- $ this ->resultRawFactory ->expects ($ this ->once ())
463- ->method ('create ' )
464- ->willReturn ($ this ->resultRaw );
465-
466- $ this ->resultRaw ->expects ($ this ->once ())
467- ->method ('setContents ' )
468- ->with ('' )
469- ->willReturnSelf ();
470-
471- // Session should be cleared
472- $ this ->session ->expects ($ this ->once ())
473- ->method ('unsUpdateResult ' );
474-
475- $ result = $ this ->controller ->execute ();
476- $ this ->assertInstanceOf (Raw::class, $ result );
477- }
478439}
0 commit comments