Przeglądaj źródła

Tested the issue to find it's already resolved

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18261 44c647ce-9c0f-0410-b52a-842ac1e357ba
dragonbe 16 lat temu
rodzic
commit
d0513e804b
1 zmienionych plików z 14 dodań i 0 usunięć
  1. 14 0
      tests/Zend/Form/FormTest.php

+ 14 - 0
tests/Zend/Form/FormTest.php

@@ -575,6 +575,20 @@ class Zend_Form_FormTest extends PHPUnit_Framework_TestCase
         $this->assertEquals('/foo/bar', $this->form->getAction());
     }
 
+    /**
+     * @issue ZF-7067
+     */
+    public function testCanSetActionWithGetParams()
+    {
+        $this->testActionDefaultsToEmptyString();
+        $this->form->setAction('/foo.php?bar')
+                   ->setView(new Zend_View);
+        $html = $this->form->render();
+
+        $this->assertContains('action="/foo.php?bar"', $html);
+	$this->assertEquals('/foo.php?bar', $this->form->getAction());
+    }
+
     public function testMethodDefaultsToPost()
     {
         $this->assertEquals('post', $this->form->getMethod());