Skip to content
Permalink
Browse files

Uncomment a bunch of skipped cors cases.

Whoops.
  • Loading branch information...
markstory committed Dec 9, 2016
1 parent 720fb86 commit 116b8feb8098220a8405b1a1ea721a1ac004da36
Showing with 13 additions and 13 deletions.
  1. +13 −13 tests/TestCase/Network/ResponseTest.php
@@ -1493,19 +1493,19 @@ public function corsData()
};
return [
// [$fooRequest, null, '*', '', '', false, false],
// [$fooRequest, 'http://www.foo.com', '*', '', '', '*', false],
// [$fooRequest, 'http://www.foo.com', 'www.foo.com', '', '', 'http://www.foo.com', false],
// [$fooRequest, 'http://www.foo.com', '*.foo.com', '', '', 'http://www.foo.com', false],
// [$fooRequest, 'http://www.foo.com', 'http://*.foo.com', '', '', 'http://www.foo.com', false],
// [$fooRequest, 'http://www.foo.com', 'https://www.foo.com', '', '', false, false],
// [$fooRequest, 'http://www.foo.com', 'https://*.foo.com', '', '', false, false],
// [$fooRequest, 'http://www.foo.com', ['*.bar.com', '*.foo.com'], '', '', 'http://www.foo.com', false],
// [$fooRequest, 'http://not-foo.com', '*.foo.com', '', '', false, false],
// [$fooRequest, 'http://bad.academy', '*.acad.my', '', '', false, false],
// [$fooRequest, 'http://www.foo.com.at.bad.com', '*.foo.com', '', '', false, false],
// [$fooRequest, 'https://www.foo.com', '*.foo.com', '', '', false, false],
[$fooRequest, null, '*', '', '', false, false],
[$fooRequest, 'http://www.foo.com', '*', '', '', '*', false],
[$fooRequest, 'http://www.foo.com', 'www.foo.com', '', '', 'http://www.foo.com', false],
[$fooRequest, 'http://www.foo.com', '*.foo.com', '', '', 'http://www.foo.com', false],
[$fooRequest, 'http://www.foo.com', 'http://*.foo.com', '', '', 'http://www.foo.com', false],
[$fooRequest, 'http://www.foo.com', 'https://www.foo.com', '', '', false, false],
[$fooRequest, 'http://www.foo.com', 'https://*.foo.com', '', '', false, false],
[$fooRequest, 'http://www.foo.com', ['*.bar.com', '*.foo.com'], '', '', 'http://www.foo.com', false],
[$fooRequest, 'http://not-foo.com', '*.foo.com', '', '', false, false],
[$fooRequest, 'http://bad.academy', '*.acad.my', '', '', false, false],
[$fooRequest, 'http://www.foo.com.at.bad.com', '*.foo.com', '', '', false, false],
[$fooRequest, 'https://www.foo.com', '*.foo.com', '', '', false, false],
[$secureRequest(), 'https://www.bar.com', 'www.bar.com', '', '', 'https://www.bar.com', false],
[$secureRequest(), 'https://www.bar.com', 'http://www.bar.com', '', '', false, false],

0 comments on commit 116b8fe

Please sign in to comment.
You can’t perform that action at this time.