Browse Source

Fix tests.

mscherer 6 years ago
parent
commit
d9b150797f
2 changed files with 4 additions and 4 deletions
  1. 2 2
      tests/TestCase/Utility/MimeTest.php
  2. 2 2
      tests/TestCase/Utility/UtilityTest.php

+ 2 - 2
tests/TestCase/Utility/MimeTest.php

@@ -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');

+ 2 - 2
tests/TestCase/Utility/UtilityTest.php

@@ -227,13 +227,13 @@ class UtilityTest extends TestCase {
 	 * @return void
 	 */
 	public function testFileExists() {
-		$res = Utility::fileExists('http://www.spiegel.de/static/sys/v10/icons/home_v2.png');
+		$res = Utility::fileExists('https://raw.githubusercontent.com/dereuromark/cakephp-tools/master/docs/README.md');
 		$this->assertTrue($res);
 
 		$res = Utility::fileExists(Plugin::path('Tools') . 'tests' . DS . 'test_files' . DS . 'img' . DS . 'hotel.jpg');
 		$this->assertTrue($res);
 
-		$res = Utility::fileExists('http://www.spiegel.de/static/sys/v10/icons/home_v2_inexistent.png');
+		$res = Utility::fileExists('https://raw.githubusercontent.com/dereuromark/cakephp-tools/master/docs/README_invalid.md');
 		$this->assertFalse($res);
 
 		$res = Utility::fileExists(Plugin::path('Tools') . 'tests' . DS . 'test_files' . DS . 'img' . DS . 'fooooo.jpg');