Created
October 7, 2015 22:59
-
-
Save neclimdul/8fc3a7375083c1d97d14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Drupal\Tests\Core\Routing\SecuredRedirectResponseTest::testHeaderBag | |
Failed asserting that two arrays are equal. | |
--- Expected | |
+++ Actual | |
@@ @@ | |
Array ( | |
0 => Array (...) | |
'Cache-Control' => Array ( | |
- 0 => 'no-cache' | |
+ 0 => 'no-cache, private' | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SecuredRedirectResponseTest extends UnitTestCase { | |
public function testHeaderBag() { | |
$headers = ['test']; | |
$bag1 = new ResponseHeaderBag($headers); | |
$bag2 = new ResponseHeaderBag($bag1->allPreserveCase()); | |
$this->assertEquals($bag1->allPreserveCase(), $bag2->allPreserveCase()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment