forked from FluidTYPO3/flux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Cover NormalizedData scope with tests
- Loading branch information
1 parent
039af27
commit bdfd9d9
Showing
10 changed files
with
600 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
|
||
trait DataAccessTrait | ||
{ | ||
|
||
/** | ||
* @var ConfigurationManagerInterface; | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
Tests/Unit/Integration/NormalizedData/AbstractImplementationTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
namespace FluidTYPO3\Flux\Tests\Unit\Integration\NormalizedData\Converter; | ||
|
||
/* | ||
* This file is part of the FluidTYPO3/Flux project under GPLv2 or later. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.md file that was distributed with this source code. | ||
*/ | ||
|
||
use FluidTYPO3\Flux\Form; | ||
use FluidTYPO3\Flux\Integration\HookSubscribers\PagePreviewRenderer; | ||
use FluidTYPO3\Flux\Integration\NormalizedData\AbstractImplementation; | ||
use FluidTYPO3\Flux\Integration\NormalizedData\Converter\InlineRecordDataConverter; | ||
use FluidTYPO3\Flux\Provider\Provider; | ||
use FluidTYPO3\Flux\Provider\ProviderInterface; | ||
use FluidTYPO3\Flux\Tests\Unit\AbstractTestCase; | ||
use TYPO3\CMS\Backend\Controller\PageLayoutController; | ||
use TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
|
||
class AbstractImplementationTest extends AbstractTestCase | ||
{ | ||
public function testAppliesToRecord(): void | ||
{ | ||
$subject = $this->getMockBuilder(AbstractImplementation::class) | ||
->setConstructorArgs([]) | ||
->getMockForAbstractClass(); | ||
self::assertTrue($subject->appliesToRecord(['uid' => 123])); | ||
} | ||
} |
Oops, something went wrong.