Skip to content
Snippets Groups Projects
Commit 59afe4f9 authored by Elmar Hinz's avatar Elmar Hinz Committed by Frank Naegler
Browse files

[TASK] Add unit test to cover stdWrap_setContentToCurrent

Resolves: #76635
Releases: master
Change-Id: Ie14b6417a426478e072eb987261aafeb1f9d9479
Reviewed-on: https://review.typo3.org/48582


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: default avatarFrank Naegler <frank.naegler@typo3.org>
parent 74d883a2
Branches
Tags
No related merge requests found
......@@ -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
*
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment