| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | public function testFromAmazonRequestFull(): void |
||
| 13 | { |
||
| 14 | $tag = PagerTag::fromAmazonRequest([ |
||
| 15 | 'index' => 3, |
||
| 16 | 'pageCount' => 10, |
||
| 17 | 'allowForward' => true, |
||
| 18 | 'allowBackwards' => false, |
||
| 19 | ]); |
||
| 20 | |||
| 21 | $this->assertSame(3, $tag->index); |
||
| 22 | $this->assertSame(10, $tag->pageCount); |
||
| 23 | $this->assertTrue($tag->allowForward); |
||
| 24 | $this->assertFalse($tag->allowBackwards); |
||
| 25 | } |
||
| 50 |