|
|
@@ -107,10 +107,10 @@ class MimeTest extends TestCase {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function testgetMimeTypeByAlias() {
|
|
|
- $res = $this->Mime->detectMimeType('http://www.spiegel.de/static/sys/v10/icons/home_v2.png');
|
|
|
+ $res = $this->Mime->detectMimeType('https://raw.githubusercontent.com/dereuromark/cakephp-ide-helper/master/docs/img/code_completion.png');
|
|
|
$this->assertEquals('image/png', $res);
|
|
|
|
|
|
- $res = $this->Mime->detectMimeType('http://www.spiegel.de/static/sys/v10/icons/home_v2_inexistent.png');
|
|
|
+ $res = $this->Mime->detectMimeType('https://raw.githubusercontent.com/dereuromark/cakephp-ide-helper/master/docs/img/code_completion_invalid.png');
|
|
|
$this->assertEquals('', $res);
|
|
|
|
|
|
$res = $this->Mime->detectMimeType(Plugin::path('Tools') . 'tests' . DS . 'test_files' . DS . 'img' . DS . 'hotel.jpg');
|