-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPerPageTest.php
More file actions
62 lines (52 loc) · 1.49 KB
/
PerPageTest.php
File metadata and controls
62 lines (52 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
namespace Javaabu\Forms\Tests\Feature;
use Javaabu\Forms\Tests\TestCase;
class PerPageTest extends TestCase
{
/** @test */
public function it_can_see_the_default_per_page_options_bs5()
{
$this->setFrameworkBootstrap5();
$this->registerTestRoute('per-page')
->visit('/per-page')
->see('10')
->see('20')
->see('50')
->see('100')
->see('500');
}
/** @test */
public function it_can_see_the_custom_per_page_options_bs5()
{
$this->setFrameworkBootstrap5();
$this->withoutExceptionHandling();
$this->registerTestRoute('per-page-custom')
->visit('/per-page-custom')
->see('11')
->see('22')
->see('55');
}
/** @test */
public function it_can_see_the_default_per_page_options_material_admin_26()
{
$this->setFrameworkMaterialAdmin26();
$this->registerTestRoute('per-page')
->visit('/per-page')
->see('10')
->see('20')
->see('50')
->see('100')
->see('500');
}
/** @test */
public function it_can_see_the_custom_per_page_options_material_admin_26()
{
$this->setFrameworkMaterialAdmin26();
$this->withoutExceptionHandling();
$this->registerTestRoute('per-page-custom')
->visit('/per-page-custom')
->see('11')
->see('22')
->see('55');
}
}