Update LinkPagerTest.php
This commit is contained in:
parent
7cb500ac75
commit
1d533e0d77
@ -70,12 +70,12 @@ class LinkPagerTest extends TestCase
|
|||||||
'pagination' => $pagination,
|
'pagination' => $pagination,
|
||||||
'disableCurrentPageButton' => false,
|
'disableCurrentPageButton' => false,
|
||||||
]);
|
]);
|
||||||
$this->assertContains('<li class="page-item active" aria-current="true"><a class="page-link" href="/?r=test&page=6" data-page="5">6</a></li>', $output);
|
$this->assertContains('<li class="page-item active" aria-current="page"><a class="page-link" href="/?r=test&page=6" data-page="5">6</a></li>', $output);
|
||||||
$output = LinkPager::widget([
|
$output = LinkPager::widget([
|
||||||
'pagination' => $pagination,
|
'pagination' => $pagination,
|
||||||
'disableCurrentPageButton' => true,
|
'disableCurrentPageButton' => true,
|
||||||
]);
|
]);
|
||||||
$this->assertContains('<li class="page-item active disabled" aria-current="true"><a class="page-link" href="/?r=test&page=6" data-page="5" tabindex="-1">6</a></li>', $output);
|
$this->assertContains('<li class="page-item active disabled" aria-current="page"><a class="page-link" href="/?r=test&page=6" data-page="5" tabindex="-1">6</a></li>', $output);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testOptionsWithTagOption()
|
public function testOptionsWithTagOption()
|
||||||
@ -105,7 +105,7 @@ class LinkPagerTest extends TestCase
|
|||||||
$output
|
$output
|
||||||
);
|
);
|
||||||
$this->assertContains(
|
$this->assertContains(
|
||||||
'<div class="my-class page-item active" aria-current="true"><a class="page-link" href="/?r=test&page=2" data-page="1">2</a></div>',
|
'<div class="my-class page-item active" aria-current="page"><a class="page-link" href="/?r=test&page=2" data-page="1">2</a></div>',
|
||||||
$output
|
$output
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user