diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php
index ba19f5159ab1873dc05aed949977b9ed8bd46819..7eef0b1b5fcec7f34c9af2759c90c1bd39e56df0 100755
--- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php
@@ -830,6 +830,21 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         $this->assertEquals($expected, $result);
     }
 
+    /**
+     * Check if stdWrap_setContentToCurrent works properly.
+     *
+     * @test
+     * @return void
+     */
+    public function stdWrap_setContentToCurrent()
+    {
+        $content = $this->getUniqueId('content');
+        $this->assertNotSame($content, $this->subject->getData('current'));
+        $this->assertSame($content,
+            $this->subject->stdWrap_setContentToCurrent($content));
+        $this->assertSame($content, $this->subject->getData('current'));
+    }
+
     /**
      * Data provider for stdWrap_csConv
      *