|
@@ 122-130 (lines=9) @@
|
| 119 |
|
* @uses \Tfboe\FmLib\Entity\Traits\QualificationSystem |
| 120 |
|
* @uses \Tfboe\FmLib\Entity\Helpers\TournamentHierarchyEntity::__construct |
| 121 |
|
*/ |
| 122 |
|
public function testNextQualificationSystems() |
| 123 |
|
{ |
| 124 |
|
$phase = $this->phase(); |
| 125 |
|
self::callProtectedMethod($phase, 'init'); |
| 126 |
|
$qualificationSystem = new QualificationSystem(); |
| 127 |
|
$qualificationSystem->setPreviousPhase($phase); |
| 128 |
|
self::assertEquals(1, $phase->getPostQualifications()->count()); |
| 129 |
|
self::assertEquals($qualificationSystem, $phase->getPostQualifications()[0]); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
/** |
| 133 |
|
* @covers \Tfboe\FmLib\Entity\Traits\Phase::setPhaseNumber |
|
@@ 150-158 (lines=9) @@
|
| 147 |
|
* @uses \Tfboe\FmLib\Entity\Traits\Phase::init |
| 148 |
|
* @uses \Tfboe\FmLib\Entity\Traits\QualificationSystem |
| 149 |
|
*/ |
| 150 |
|
public function testPreviousQualificationSystems() |
| 151 |
|
{ |
| 152 |
|
$phase = $this->phase(); |
| 153 |
|
self::callProtectedMethod($phase, 'init'); |
| 154 |
|
$qualificationSystem = new QualificationSystem(); |
| 155 |
|
$qualificationSystem->setNextPhase($phase); |
| 156 |
|
self::assertEquals(1, $phase->getPreQualifications()->count()); |
| 157 |
|
self::assertEquals($qualificationSystem, $phase->getPreQualifications()[0]); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
/** |
| 161 |
|
* @covers \Tfboe\FmLib\Entity\Traits\Phase::getRankings |