Merge branch '2.0'
* 2.0: [HttpKernel] fixed unit tests that can fail randomly
This commit is contained in:
commit
cc8f3086df
@ -515,7 +515,7 @@ class HttpCacheTest extends HttpCacheTestCase
|
||||
$this->request('GET', '/');
|
||||
$this->assertHttpKernelIsNotCalled();
|
||||
$this->assertEquals(200, $this->response->getStatusCode());
|
||||
$this->assertEquals($this->responses[0]->headers->get('Date'), $this->response->headers->get('Date'));
|
||||
$this->assertTrue(strtotime($this->responses[0]->headers->get('Date')) - strtotime($this->response->headers->get('Date')) < 2);
|
||||
$this->assertTrue($this->response->headers->get('Age') > 0);
|
||||
$this->assertNotNull($this->response->headers->get('X-Content-Digest'));
|
||||
$this->assertTraceContains('fresh');
|
||||
@ -539,7 +539,7 @@ class HttpCacheTest extends HttpCacheTestCase
|
||||
$this->request('GET', '/');
|
||||
$this->assertHttpKernelIsNotCalled();
|
||||
$this->assertEquals(200, $this->response->getStatusCode());
|
||||
$this->assertEquals($this->responses[0]->headers->get('Date'), $this->response->headers->get('Date'));
|
||||
$this->assertTrue(strtotime($this->responses[0]->headers->get('Date')) - strtotime($this->response->headers->get('Date')) < 2);
|
||||
$this->assertTrue($this->response->headers->get('Age') > 0);
|
||||
$this->assertNotNull($this->response->headers->get('X-Content-Digest'));
|
||||
$this->assertTraceContains('fresh');
|
||||
@ -563,7 +563,7 @@ class HttpCacheTest extends HttpCacheTestCase
|
||||
$this->request('GET', '/');
|
||||
$this->assertHttpKernelIsNotCalled();
|
||||
$this->assertEquals(200, $this->response->getStatusCode());
|
||||
$this->assertEquals($this->responses[0]->headers->get('Date'), $this->response->headers->get('Date'));
|
||||
$this->assertTrue(strtotime($this->responses[0]->headers->get('Date')) - strtotime($this->response->headers->get('Date')) < 2);
|
||||
$this->assertTrue($this->response->headers->get('Age') > 0);
|
||||
$this->assertNotNull($this->response->headers->get('X-Content-Digest'));
|
||||
$this->assertTraceContains('fresh');
|
||||
|
Reference in New Issue
Block a user