瀏覽代碼

[Form] fixed xpath

Kris Wallsmith 14 年之前
父節點
當前提交
d26c590021
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tests/Symfony/Tests/Component/Form/AbstractTableLayoutTest.php

+ 2 - 1
tests/Symfony/Tests/Component/Form/AbstractTableLayoutTest.php

@@ -153,8 +153,9 @@ abstract class AbstractTableLayoutTest extends AbstractLayoutTest
     [
         ./tr[./td/input[@type="text"][@value="a"]]
         /following-sibling::tr[./td/input[@type="text"][@value="b"]]
+        /following-sibling::tr[./td/input[@type="hidden"][@id="name__token"]]
     ]
-    [count(./tr[./td/input])=2]
+    [count(./tr[./td/input])=3]
 '
         );
     }