@@ -36,7 +36,14 @@ public function testPaginationIsCached()
36
36
37
37
public function testPaginationReturnsCorrectLinks ()
38
38
{
39
- if ($ this ->appVersionEightAndUp ()) {
39
+ // Checking the version start with 10.0.
40
+ if ($ this ->appVersionTen ()) {
41
+ $ page1ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">1</span> ' ;
42
+ $ page2ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">2</span> ' ;
43
+ $ page24ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">24</span> ' ;
44
+ }
45
+
46
+ if ($ this ->appVersionEightAndNine ()) {
40
47
$ page1ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">1</span> ' ;
41
48
$ page2ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">2</span> ' ;
42
49
$ page24ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">24</span> ' ;
@@ -71,7 +78,14 @@ public function testPaginationReturnsCorrectLinks()
71
78
72
79
public function testPaginationWithOptionsReturnsCorrectLinks ()
73
80
{
74
- if ($ this ->appVersionEightAndUp ()) {
81
+ // Checking the version start with 10.0.
82
+ if ($ this ->appVersionTen ()) {
83
+ $ page1ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">1</span> ' ;
84
+ $ page2ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">2</span> ' ;
85
+ $ page24ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">24</span> ' ;
86
+ }
87
+
88
+ if ($ this ->appVersionEightAndNine ()) {
75
89
$ page1ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">1</span> ' ;
76
90
$ page2ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">2</span> ' ;
77
91
$ page24ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">24</span> ' ;
@@ -106,7 +120,14 @@ public function testPaginationWithOptionsReturnsCorrectLinks()
106
120
107
121
public function testPaginationWithCustomOptionsReturnsCorrectLinks ()
108
122
{
109
- if ($ this ->appVersionEightAndUp ()) {
123
+ // Checking the version start with 10.0.
124
+ if ($ this ->appVersionTen ()) {
125
+ $ page1ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">1</span> ' ;
126
+ $ page2ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">2</span> ' ;
127
+ $ page24ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 dark:bg-gray-800 dark:border-gray-600">24</span> ' ;
128
+ }
129
+
130
+ if ($ this ->appVersionEightAndNine ()) {
110
131
$ page1ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">1</span> ' ;
111
132
$ page2ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">2</span> ' ;
112
133
$ page24ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">24</span> ' ;
0 commit comments