Commit 8a8c4eac authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen
Browse files

[TASK] Changing setup-method

parent af724670
Pipeline #3417 failed with stages
in 1 minute and 45 seconds
......@@ -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
*/
public function addVersionsToExtension(\T3o\TerFe2\Domain\Model\Extension $extension, $amount = 4)
private function addVersionsToExtension(Extension $extension, $amount = 4)
{
for ($index = 1; $index <= $amount; $index++) {
$version = new \T3o\TerFe2\Domain\Model\Version();
......
Supports Markdown
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