Fix deprecation test on master
This commit is contained in:
parent
742b6b8508
commit
d2f7c6c19c
@ -246,8 +246,8 @@ class AbstractControllerTest extends TestCase
|
|||||||
if ($response->headers->get('content-type')) {
|
if ($response->headers->get('content-type')) {
|
||||||
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
||||||
}
|
}
|
||||||
$this->assertContains(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $response->headers->get('content-disposition'));
|
$this->assertStringContainsString(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $response->headers->get('content-disposition'));
|
||||||
$this->assertContains(basename(__FILE__), $response->headers->get('content-disposition'));
|
$this->assertStringContainsString(basename(__FILE__), $response->headers->get('content-disposition'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFileAsInline()
|
public function testFileAsInline()
|
||||||
@ -262,8 +262,8 @@ class AbstractControllerTest extends TestCase
|
|||||||
if ($response->headers->get('content-type')) {
|
if ($response->headers->get('content-type')) {
|
||||||
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
||||||
}
|
}
|
||||||
$this->assertContains(ResponseHeaderBag::DISPOSITION_INLINE, $response->headers->get('content-disposition'));
|
$this->assertStringContainsString(ResponseHeaderBag::DISPOSITION_INLINE, $response->headers->get('content-disposition'));
|
||||||
$this->assertContains(basename(__FILE__), $response->headers->get('content-disposition'));
|
$this->assertStringContainsString(basename(__FILE__), $response->headers->get('content-disposition'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFileWithOwnFileName()
|
public function testFileWithOwnFileName()
|
||||||
@ -279,8 +279,8 @@ class AbstractControllerTest extends TestCase
|
|||||||
if ($response->headers->get('content-type')) {
|
if ($response->headers->get('content-type')) {
|
||||||
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
||||||
}
|
}
|
||||||
$this->assertContains(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $response->headers->get('content-disposition'));
|
$this->assertStringContainsString(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $response->headers->get('content-disposition'));
|
||||||
$this->assertContains($fileName, $response->headers->get('content-disposition'));
|
$this->assertStringContainsString($fileName, $response->headers->get('content-disposition'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFileWithOwnFileNameAsInline()
|
public function testFileWithOwnFileNameAsInline()
|
||||||
@ -296,8 +296,8 @@ class AbstractControllerTest extends TestCase
|
|||||||
if ($response->headers->get('content-type')) {
|
if ($response->headers->get('content-type')) {
|
||||||
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
||||||
}
|
}
|
||||||
$this->assertContains(ResponseHeaderBag::DISPOSITION_INLINE, $response->headers->get('content-disposition'));
|
$this->assertStringContainsString(ResponseHeaderBag::DISPOSITION_INLINE, $response->headers->get('content-disposition'));
|
||||||
$this->assertContains($fileName, $response->headers->get('content-disposition'));
|
$this->assertStringContainsString($fileName, $response->headers->get('content-disposition'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFileFromPath()
|
public function testFileFromPath()
|
||||||
@ -312,8 +312,8 @@ class AbstractControllerTest extends TestCase
|
|||||||
if ($response->headers->get('content-type')) {
|
if ($response->headers->get('content-type')) {
|
||||||
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
||||||
}
|
}
|
||||||
$this->assertContains(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $response->headers->get('content-disposition'));
|
$this->assertStringContainsString(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $response->headers->get('content-disposition'));
|
||||||
$this->assertContains(basename(__FILE__), $response->headers->get('content-disposition'));
|
$this->assertStringContainsString(basename(__FILE__), $response->headers->get('content-disposition'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFileFromPathWithCustomizedFileName()
|
public function testFileFromPathWithCustomizedFileName()
|
||||||
@ -328,8 +328,8 @@ class AbstractControllerTest extends TestCase
|
|||||||
if ($response->headers->get('content-type')) {
|
if ($response->headers->get('content-type')) {
|
||||||
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
$this->assertSame('text/x-php', $response->headers->get('content-type'));
|
||||||
}
|
}
|
||||||
$this->assertContains(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $response->headers->get('content-disposition'));
|
$this->assertStringContainsString(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $response->headers->get('content-disposition'));
|
||||||
$this->assertContains('test.php', $response->headers->get('content-disposition'));
|
$this->assertStringContainsString('test.php', $response->headers->get('content-disposition'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFileWhichDoesNotExist()
|
public function testFileWhichDoesNotExist()
|
||||||
|
Reference in New Issue
Block a user