Skip to content

Commit c9b01e8

Browse files
committed
tests: added test getPageURI return object in Pager
1 parent fd883ec commit c9b01e8

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

tests/system/Pager/PagerTest.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,9 @@ public function testStoreWithURIReturnObject()
184184
{
185185
$this->pager->store('bar', 5, 25, 100, 1);
186186

187-
$uri = $this->pager->getPageURI(7, 'bar', true);
188-
$onlyURI = $this->pager->only(['bar'])->getPageURI(9, 'bar', true);
187+
$uri = $this->pager->getPageURI(7, 'bar', true);
189188

190-
// Total Segment
191-
$this->assertSame(1, $uri->getTotalSegments());
192-
$this->assertSame(1, $onlyURI->getTotalSegments());
193-
194-
// Get Segment
195-
$this->assertSame('', $uri->getSegment(2));
196-
$this->assertSame('9', $onlyURI->getSegment(1));
189+
$this->assertInstanceOf(URI::class, $uri);
197190
}
198191

199192
public function testHasMoreDefaultsToFalse()

0 commit comments

Comments
 (0)