mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Remove unnecessary FRAMEWORK_DIR constants
This commit is contained in:
parent
f4a77649a4
commit
16f4345124
@ -201,16 +201,16 @@ class HTTPTest extends FunctionalTest
|
|||||||
*/
|
*/
|
||||||
public function testGetMimeType()
|
public function testGetMimeType()
|
||||||
{
|
{
|
||||||
$this->assertEquals('text/plain', HTTP::get_mime_type(FRAMEWORK_DIR.'/tests/control/files/file.csv'));
|
$this->assertEquals('text/plain', HTTP::get_mime_type('file.csv'));
|
||||||
$this->assertEquals('image/gif', HTTP::get_mime_type(FRAMEWORK_DIR.'/tests/control/files/file.gif'));
|
$this->assertEquals('image/gif', HTTP::get_mime_type('file.gif'));
|
||||||
$this->assertEquals('text/html', HTTP::get_mime_type(FRAMEWORK_DIR.'/tests/control/files/file.html'));
|
$this->assertEquals('text/html', HTTP::get_mime_type('file.html'));
|
||||||
$this->assertEquals('image/jpeg', HTTP::get_mime_type(FRAMEWORK_DIR.'/tests/control/files/file.jpg'));
|
$this->assertEquals('image/jpeg', HTTP::get_mime_type('file.jpg'));
|
||||||
$this->assertEquals('image/png', HTTP::get_mime_type(FRAMEWORK_DIR.'/tests/control/files/file.png'));
|
$this->assertEquals('image/png', HTTP::get_mime_type('file.png'));
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'image/vnd.adobe.photoshop',
|
'image/vnd.adobe.photoshop',
|
||||||
HTTP::get_mime_type(FRAMEWORK_DIR.'/tests/control/files/file.psd')
|
HTTP::get_mime_type('file.psd')
|
||||||
);
|
);
|
||||||
$this->assertEquals('audio/x-wav', HTTP::get_mime_type(FRAMEWORK_DIR.'/tests/control/files/file.wav'));
|
$this->assertEquals('audio/x-wav', HTTP::get_mime_type('file.wav'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -71,7 +71,7 @@ class DeprecationTest extends SapphireTest
|
|||||||
public function testMatchingModuleNotifcationVersionAffectsNotice()
|
public function testMatchingModuleNotifcationVersionAffectsNotice()
|
||||||
{
|
{
|
||||||
Deprecation::notification_version('1.0.0');
|
Deprecation::notification_version('1.0.0');
|
||||||
Deprecation::notification_version('3.0.0', FRAMEWORK_DIR);
|
Deprecation::notification_version('3.0.0', 'silverstripe/framework');
|
||||||
$this->callThatOriginatesFromFramework();
|
$this->callThatOriginatesFromFramework();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user