Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 183cfee

Browse files
committed
Revise data provider cases for placeholderProvider
- Removes duplicates - Gives each names - Aligns columnns
1 parent f512921 commit 183cfee

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

test/Http/PlaceholderTest.php

+11-13
Original file line numberDiff line numberDiff line change
@@ -143,20 +143,18 @@ public function placeholderProvider()
143143
]
144144
];
145145

146+
// @codingStandardsIgnoreStart
146147
return [
147-
[$home, 'http://example.com/', 'auth/login'],
148-
[$home, 'http://example.com', 'auth/login'],
149-
[$home, 'http://example.com/register', 'auth/register'],
150-
[$home, 'http://example.com/home', 'home'],
151-
[$homeAtRootAuthMoved, 'http://example.com/auth/', 'auth/login'],
152-
[$homeAtRootAuthMoved, 'http://example.com/auth/register', 'auth/register'],
153-
[$homeAtRootAuthMoved, 'http://example.com/', 'home'],
154-
[$homeAtRootAuthMoved, 'http://example.com', 'home'],
155-
[$homeAtRootAuthOnSubDomain, 'http://auth.example.com/', 'auth/login'],
156-
[$homeAtRootAuthOnSubDomain, 'http://auth.example.com', 'auth/login'],
157-
[$homeAtRootAuthOnSubDomain, 'http://auth.example.com/register', 'auth/register'],
158-
[$homeAtRootAuthOnSubDomain, 'http://example.com/', 'home'],
159-
[$homeAtRootAuthOnSubDomain, 'http://example.com', 'home'],
148+
'no-override-login' => [$home, 'http://example.com/', 'auth/login'],
149+
'no-override-register' => [$home, 'http://example.com/register', 'auth/register'],
150+
'no-override-home' => [$home, 'http://example.com/home', 'home'],
151+
'path-override-login' => [$homeAtRootAuthMoved, 'http://example.com/auth/', 'auth/login'],
152+
'path-override-register' => [$homeAtRootAuthMoved, 'http://example.com/auth/register', 'auth/register'],
153+
'path-override-home' => [$homeAtRootAuthMoved, 'http://example.com', 'home'],
154+
'subdomain-override-login' => [$homeAtRootAuthOnSubDomain, 'http://auth.example.com/', 'auth/login'],
155+
'subdomain-override-register' => [$homeAtRootAuthOnSubDomain, 'http://auth.example.com/register', 'auth/register'],
156+
'subdomina-override-home' => [$homeAtRootAuthOnSubDomain, 'http://example.com/', 'home'],
160157
];
158+
// @codingStandardsIgnoreEnd
161159
}
162160
}

0 commit comments

Comments
 (0)