mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix unit tests
This commit is contained in:
parent
aa1ba0ef90
commit
6f32762268
@ -92,7 +92,7 @@ class HTTPCacheControlMiddleware implements HTTPMiddleware, Resettable
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $state = self::STATE_ENABLED;
|
||||
protected $state = self::STATE_DISABLED;
|
||||
|
||||
/**
|
||||
* Forcing level of previous setting; higher number wins
|
||||
|
@ -4,7 +4,6 @@ namespace SilverStripe\Control\Tests;
|
||||
|
||||
use SilverStripe\Control\HTTP;
|
||||
use SilverStripe\Control\Middleware\HTTPCacheControlMiddleware;
|
||||
use SilverStripe\Control\Session;
|
||||
use SilverStripe\Control\Tests\HTTPCacheControlIntegrationTest\RuleController;
|
||||
use SilverStripe\Control\Tests\HTTPCacheControlIntegrationTest\SessionController;
|
||||
use SilverStripe\Core\Config\Config;
|
||||
|
@ -75,7 +75,7 @@ class HTTPTest extends FunctionalTest
|
||||
$this->expectException(PHPUnit_Framework_Error_Warning::class);
|
||||
$this->expectExceptionMessage(
|
||||
'Cache-Control header has already been set. '
|
||||
. 'Please use HTTPCacheControl API to set caching options instead.'
|
||||
. 'Please use HTTPCacheControlMiddleware API to set caching options instead.'
|
||||
);
|
||||
|
||||
HTTP::add_cache_headers($response);
|
||||
|
Loading…
Reference in New Issue
Block a user