|
@@ 86-92 (lines=7) @@
|
| 83 |
|
]); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
public function testGetConsumerscoreSampleCounterFilled() |
| 87 |
|
{ |
| 88 |
|
$expected = 5; |
| 89 |
|
$this->databaseHelper->method('getConfigParamWithoutCache')->willReturn($expected); |
| 90 |
|
$result = $this->consumerscore->getConsumerscoreSampleCounter(); |
| 91 |
|
$this->assertEquals($expected, $result); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
public function testGetConsumerscoreSampleCounterNotFilled() |
| 95 |
|
{ |
|
@@ 94-100 (lines=7) @@
|
| 91 |
|
$this->assertEquals($expected, $result); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
public function testGetConsumerscoreSampleCounterNotFilled() |
| 95 |
|
{ |
| 96 |
|
$expected = 0; |
| 97 |
|
$this->databaseHelper->method('getConfigParamWithoutCache')->willReturn(false); |
| 98 |
|
$result = $this->consumerscore->getConsumerscoreSampleCounter(); |
| 99 |
|
$this->assertEquals($expected, $result); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
public function testSetConsumerscoreSampleCounter() |
| 103 |
|
{ |
|
@@ 109-115 (lines=7) @@
|
| 106 |
|
$this->assertEquals($expected, $result); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
public function testIncrementConsumerscoreSampleCounter() |
| 110 |
|
{ |
| 111 |
|
$this->databaseHelper->method('getConfigParamWithoutCache')->willReturn(5); |
| 112 |
|
$result = $this->consumerscore->incrementConsumerscoreSampleCounter(); |
| 113 |
|
$expected = 6; |
| 114 |
|
$this->assertEquals($expected, $result); |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
public function testIsSampleNeeded() |
| 118 |
|
{ |