1 | <?php |
||
11 | class AcachaAdminLTELaravelTest extends TestCase |
||
|
|||
12 | { |
||
13 | use DatabaseMigrations; |
||
14 | |||
15 | /** |
||
16 | * @param User $user |
||
17 | * |
||
18 | * @return mixed |
||
19 | */ |
||
20 | private function createUserApiKey(User $user) |
||
25 | |||
26 | /** |
||
27 | * Test Landing Page. |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | public function testLandingPage() |
||
38 | |||
39 | /** |
||
40 | * Test Landing Page. |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function testLandingPageWithUserLogged() |
||
55 | |||
56 | /** |
||
57 | * Test Login Page. |
||
58 | * |
||
59 | * @return void |
||
60 | */ |
||
61 | public function testLoginPage() |
||
66 | |||
67 | /** |
||
68 | * Test Login. |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | public function testLogin() |
||
84 | |||
85 | /** |
||
86 | * Test Login. |
||
87 | * |
||
88 | * @return void |
||
89 | */ |
||
90 | public function testLoginRequiredFields() |
||
97 | |||
98 | /** |
||
99 | * Test Register Page. |
||
100 | * |
||
101 | * @return void |
||
102 | */ |
||
103 | public function testRegisterPage() |
||
108 | |||
109 | /** |
||
110 | * Test Password reset Page. |
||
111 | * |
||
112 | * @return void |
||
113 | */ |
||
114 | public function testPasswordResetPage() |
||
119 | |||
120 | /** |
||
121 | * Test home page is only for authorized Users. |
||
122 | * |
||
123 | * @return void |
||
124 | */ |
||
125 | public function testHomePageForUnauthenticatedUsers() |
||
130 | |||
131 | /** |
||
132 | * Test home page works with Authenticated Users. |
||
133 | * |
||
134 | * @return void |
||
135 | */ |
||
136 | public function testHomePageForAuthenticatedUsers() |
||
145 | |||
146 | /** |
||
147 | * Test log out. |
||
148 | * |
||
149 | * @return void |
||
150 | */ |
||
151 | public function testLogout() |
||
159 | |||
160 | /** |
||
161 | * Test 404 Error page. |
||
162 | * |
||
163 | * @return void |
||
164 | */ |
||
165 | public function test404Page() |
||
171 | |||
172 | /** |
||
173 | * Test user registration. |
||
174 | * |
||
175 | * @return void |
||
176 | */ |
||
177 | public function testNewUserRegistration() |
||
190 | |||
191 | /** |
||
192 | * Test required fields on registration page. |
||
193 | * |
||
194 | * @return void |
||
195 | */ |
||
196 | public function testRequiredFieldsOnRegistrationPage() |
||
204 | |||
205 | /** |
||
206 | * Test send password reset. |
||
207 | * |
||
208 | * @return void |
||
209 | */ |
||
210 | public function testSendPasswordReset() |
||
219 | |||
220 | /** |
||
221 | * Test send password reset user not exists. |
||
222 | * |
||
223 | * @return void |
||
224 | */ |
||
225 | public function testSendPasswordResetUserNotExists() |
||
232 | } |
||
233 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.