Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace evaled classes with actual fixtures Releases: master Resolves: #83488 Change-Id: Id9b5e3040a8fde8cf260423dfdd1448f6675f09f Reviewed-on: https://review.typo3.org/55284 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Reiner Teubner <reiner.teubner@me.com> Tested-by: Reiner Teubner <reiner.teubner@me.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
1 parent
ded1644
commit 5e1ecd0
Showing
4 changed files
with
100 additions
and
43 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
23 changes: 23 additions & 0 deletions
23
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/Fixture/DummyChildEntity.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,23 @@ | ||
<?php | ||
declare(strict_types=1); | ||
namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\Mapper\Fixture; | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS project. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* The TYPO3 project - inspiring people to share! | ||
*/ | ||
|
||
/** | ||
* Fixture | ||
*/ | ||
class DummyChildEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity | ||
{ | ||
} |
42 changes: 42 additions & 0 deletions
42
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/Fixture/DummyEntity.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,42 @@ | ||
<?php | ||
declare(strict_types=1); | ||
namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\Mapper\Fixture; | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS project. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* The TYPO3 project - inspiring people to share! | ||
*/ | ||
|
||
/** | ||
* Fixture | ||
*/ | ||
class DummyEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $firstProperty; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public $secondProperty; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $thirdProperty; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $fourthProperty; | ||
} |
27 changes: 27 additions & 0 deletions
27
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/Fixture/DummyParentEntity.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,27 @@ | ||
<?php | ||
declare(strict_types=1); | ||
namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\Mapper\Fixture; | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS project. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* The TYPO3 project - inspiring people to share! | ||
*/ | ||
|
||
/** | ||
* Fixture | ||
*/ | ||
class DummyParentEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity | ||
{ | ||
/** | ||
* @var \TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\Mapper\Fixture\DummyChildEntity | ||
*/ | ||
public $relationProperty; | ||
} |