浏览代码

Fix escaping tests.

dereuromark 8 年之前
父节点
当前提交
2c9b9d76af
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/View/Helper/QrCodeHelper.php
  2. 1 1
      tests/TestCase/View/Helper/QrCodeHelperTest.php

+ 1 - 1
src/View/Helper/QrCodeHelper.php

@@ -127,7 +127,7 @@ class QrCodeHelper extends Helper {
 	 * Format a text in a specific format
 	 * - url, sms, tel, email, market, geo
 	 *
-	 * @param string $text
+	 * @param string|array $text
 	 * @param string|null $type
 	 * @return string formattedText
 	 */

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

@@ -49,7 +49,7 @@ class QrCodeHelperTest extends TestCase {
 	public function testImage() {
 		$is = $this->QrCode->image('Foo Bar');
 
-		$expected = '<img src="http://chart.apis.google.com/chart?chl=Foo%20Bar&cht=qr&choe=UTF-8&chs=74x74&chld=" alt=""/>';
+		$expected = '<img src="http://chart.apis.google.com/chart?chl=Foo%20Bar&amp;cht=qr&amp;choe=UTF-8&amp;chs=74x74&amp;chld=" alt=""/>';
 		$this->assertSame($expected, $is);
 	}