Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
8a8c4eac
Commit
8a8c4eac
authored
Jan 20, 2018
by
Tomas Norre Mikkelsen
Browse files
[TASK] Changing setup-method
parent
af724670
Pipeline
#3417
failed with stages
in 1 minute and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter_fe2/Tests/Unit/Domain/Model/ExtensionTest.php
View file @
8a8c4eac
...
...
@@ -25,6 +25,8 @@ namespace T3o\TerFe2\Tests\Unit\Domain\Model;
* This copyright notice MUST APPEAR in all copies of the script!
******************************************************************/
use
T3o\TerFe2\Domain\Model\Extension
;
/**
* Tests for the Extension Model
*/
...
...
@@ -38,6 +40,7 @@ class ExtensionTest extends \Nimut\TestingFramework\TestCase\UnitTestCase
public
function
setUp
()
{
parent
::
setUp
();
$this
->
fixture
=
new
\
T3o\TerFe2\Domain\Model\Extension
();
$this
->
addVersionsToExtension
(
$this
->
fixture
);
}
...
...
@@ -48,12 +51,14 @@ class ExtensionTest extends \Nimut\TestingFramework\TestCase\UnitTestCase
}
/**
* @test
* test
*
* @param \T3o\TerFe2\Domain\Model\Extension $extension
* @param int $amount
*
* @return void
*/
p
ublic
function
addVersionsToExtension
(
\
T3o\TerFe2\Domain\Model\
Extension
$extension
,
$amount
=
4
)
p
rivate
function
addVersionsToExtension
(
Extension
$extension
,
$amount
=
4
)
{
for
(
$index
=
1
;
$index
<=
$amount
;
$index
++
)
{
$version
=
new
\
T3o\TerFe2\Domain\Model\Version
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment