浏览代码

Merge branch 'cake3' of git://github.com/dereuromark/cakephp-tools into cake3

Mark Scherer 10 年之前
父节点
当前提交
fcc298382b
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 4
      tests/TestCase/View/Helper/FormatHelperTest.php
  2. 1 1
      tests/TestCase/View/Helper/HtmlHelperTest.php

+ 4 - 4
tests/TestCase/View/Helper/FormatHelperTest.php

@@ -136,19 +136,19 @@ class FormatHelperTest extends TestCase {
 	 */
 	public function testFontIcon() {
 		$result = $this->Format->fontIcon('signin');
-		$expected = '<i class="fa-signin"></i>';
+		$expected = '<i class="fa fa-signin"></i>';
 		$this->assertEquals($expected, $result);
 
 		$result = $this->Format->fontIcon('signin', ['rotate' => 90]);
-		$expected = '<i class="fa-signin fa-rotate-90"></i>';
+		$expected = '<i class="fa fa-signin fa-rotate-90"></i>';
 		$this->assertEquals($expected, $result);
 
 		$result = $this->Format->fontIcon('signin', ['size' => 5, 'extra' => ['muted']]);
-		$expected = '<i class="fa-signin fa-muted fa-5x"></i>';
+		$expected = '<i class="fa fa-signin fa-muted fa-5x"></i>';
 		$this->assertEquals($expected, $result);
 
 		$result = $this->Format->fontIcon('signin', ['size' => 5, 'extra' => ['muted'], 'namespace' => 'icon']);
-		$expected = '<i class="icon-signin icon-muted icon-5x"></i>';
+		$expected = '<i class="icon icon-signin icon-muted icon-5x"></i>';
 		$this->assertEquals($expected, $result);
 	}
 

+ 1 - 1
tests/TestCase/View/Helper/HtmlHelperTest.php

@@ -13,7 +13,7 @@ use Cake\Routing\Router;
  * Datetime Test Case
  *
  */
-class TimeHelperTest extends TestCase {
+class HtmlHelperTest extends TestCase {
 
 	public function setUp() {
 		parent::setUp();