Browse Source

Fix tests

mscherer 2 years ago
parent
commit
8b8dc5e207

+ 0 - 1
src/View/Helper/TextHelper.php

@@ -4,7 +4,6 @@ namespace Tools\View\Helper;
 
 use Cake\Core\App;
 use Cake\Core\Exception\CakeException;
-use Cake\Utility\Hash;
 use Cake\View\Helper\TextHelper as CakeTextHelper;
 use Cake\View\View;
 use Tools\Utility\Number;

+ 2 - 2
tests/TestCase/Controller/Admin/FormatControllerTest.php

@@ -10,7 +10,7 @@ use Tools\View\Icon\BootstrapIcon;
 /**
  * @uses \Tools\Controller\Admin\IconsController
  */
-class FormatControllerTest extends TestCase {
+class IconsControllerTest extends TestCase {
 
 	use IntegrationTestTrait;
 
@@ -25,7 +25,7 @@ class FormatControllerTest extends TestCase {
 				'bs' => BootstrapIcon::class,
 			],
 		]);
-		$this->get(['prefix' => 'Admin', 'plugin' => 'Tools', 'controller' => 'Format', 'action' => 'icons']);
+		$this->get(['prefix' => 'Admin', 'plugin' => 'Tools', 'controller' => 'Icons', 'action' => 'index']);
 
 		$this->assertResponseCode(200);
 	}

+ 0 - 9
tests/TestCase/Utility/LanguageTest.php

@@ -67,15 +67,6 @@ class LanguageTest extends TestCase {
 			],
 		];
 		$this->assertSame($expected, $res);
-
-		$res = Language::parseLanguageList('fi-fi,DE-DE', false);
-		$expected = [
-			'1.0' => [
-				'fi-FI',
-				'de-DE',
-			],
-		];
-		$this->assertSame($expected, $res);
 	}
 
 	/**