Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class BasicTest extends CommonTestClass |
||
12 | { |
||
13 | public function testPositions(): void |
||
14 | { |
||
15 | $position = $this->getPositions(); |
||
16 | $position->getPager()->setActualPage(4); |
||
17 | $this->assertTrue($position->prevPageExists()); |
||
18 | $this->assertTrue($position->nextPageExists()); |
||
19 | |||
20 | $position->getPager()->setActualPage($position->getFirstPage()); |
||
21 | $this->assertFalse($position->prevPageExists()); |
||
22 | $position->getPager()->setActualPage($position->getLastPage()); |
||
23 | $this->assertFalse($position->nextPageExists()); |
||
24 | } |
||
25 | |||
26 | public function testTranslations(): void |
||
27 | { |
||
28 | $position = $this->getPositions(); |
||
29 | $position->getPager()->setActualPage(4); |
||
30 | $lib = new HelpingText(); |
||
31 | $this->assertEmpty($lib->getFilledText($position)); |
||
32 | $lib->setLang(new Translations()); |
||
33 | $this->assertNotEmpty($lib->getFilledText($position)); |
||
34 | } |
||
42 |