Commit e573c62e authored by Benni Mack's avatar Benni Mack
Browse files

Merge branch 'task/add-tests-for-ltsversionservice' into 'develop'

[TASK] Add more unit tests for LTSVersionService

See merge request t3o/ter!523
parents a24e80ac fa9ecce7
Pipeline #9225 passed with stages
in 7 minutes and 40 seconds
......@@ -127,6 +127,53 @@ class LTSVersionServiceTest extends UnitTestCase
);
}
/**
* @test
*/
public function getActiveVersions()
{
self::assertSame(
[
8007000,
9005000,
10000000,
],
$this->subject->getActiveVersions()
);
}
/**
* @test
*/
public function getELTSVersions()
{
self::assertSame(
[
6002000,
7006000,
],
$this->subject->getELTSVersions()
);
}
/**
* @test
*/
public function getOldestELTSVersion()
{
$eltsVersions = $this->subject->getELTSVersions();
self::assertSame(6002000, array_shift($eltsVersions));
}
/**
* @test
*/
public function getNewestActiveVersion()
{
$activeVersions = $this->subject->getActiveVersions();
self::assertSame(10000000, array_pop($activeVersions));
}
/**
* @test
*/
......
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