Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
21ce5d03
Commit
21ce5d03
authored
9 years ago
by
Bernhard Posselt
Browse files
Options
Downloads
Patches
Plain Diff
fix #16713
parent
50074872
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/lib/appframework/middleware/security/CORSMiddlewareTest.php
+7
-0
7 additions, 0 deletions
...b/appframework/middleware/security/CORSMiddlewareTest.php
with
7 additions
and
0 deletions
tests/lib/appframework/middleware/security/CORSMiddlewareTest.php
+
7
−
0
View file @
21ce5d03
...
@@ -121,6 +121,13 @@ class CORSMiddlewareTest extends \Test\TestCase {
...
@@ -121,6 +121,13 @@ class CORSMiddlewareTest extends \Test\TestCase {
);
);
$this
->
reflector
->
reflect
(
$this
,
__FUNCTION__
);
$this
->
reflector
->
reflect
(
$this
,
__FUNCTION__
);
$middleware
=
new
CORSMiddleware
(
$request
,
$this
->
reflector
,
$this
->
session
);
$middleware
=
new
CORSMiddleware
(
$request
,
$this
->
reflector
,
$this
->
session
);
$this
->
session
->
expects
(
$this
->
never
())
->
method
(
'logout'
);
$this
->
session
->
expects
(
$this
->
never
())
->
method
(
'login'
)
->
with
(
$this
->
equalTo
(
'user'
),
$this
->
equalTo
(
'pass'
))
->
will
(
$this
->
returnValue
(
true
));
$this
->
reflector
->
reflect
(
$this
,
__FUNCTION__
);
$middleware
->
beforeController
(
$this
,
__FUNCTION__
,
new
Response
());
$middleware
->
beforeController
(
$this
,
__FUNCTION__
,
new
Response
());
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment