Commit fc4ed322 authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen Committed by Thomas Löffler
Browse files

[CGL] Add more tests for Domain/Model/Extension

parent c443ca2e
......@@ -176,7 +176,7 @@ class ExtensionTest extends \Nimut\TestingFramework\TestCase\UnitTestCase
$versionStrings = [];
/** @var Version $version */
foreach($versions as $version) {
foreach ($versions as $version) {
$versionStrings[] = $version->getVersionString();
}
......@@ -249,14 +249,14 @@ class ExtensionTest extends \Nimut\TestingFramework\TestCase\UnitTestCase
*/
public function removeVersionThrowsException()
{
self::expectException(\UnexpectedValueException::class);
self::expectExceptionCode(1339359060);
self::expectException(\UnexpectedValueException::class);
self::expectExceptionCode(1339359060);
$version = new Version();
$version->setVersionNumber(1001001);
$version = new Version();
$version->setVersionNumber(1001001);
$extension = new Extension();
$extension->removeVersion($version);
$extension = new Extension();
$extension->removeVersion($version);
}
/**
......@@ -273,7 +273,6 @@ class ExtensionTest extends \Nimut\TestingFramework\TestCase\UnitTestCase
$versionThree = new Version();
$versionThree->setVersionNumber(3003003);
$extension->addVersion($versionOne);
$extension->addVersion($versionTwo);
$extension->addVersion($versionThree);
......
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