@@ -173,41 +173,6 @@ public function testFormOpenWithHidden()
173173 $ this ->assertEquals ($ expected , form_open ('foo/bar ' , $ attributes , $ hidden ));
174174 }
175175
176- // ------------------------------------------------------------------------
177- //FIXME This needs dynamic filters to complete
178- // public function testFormOpenWithCSRF()
179- // {
180- // $config = new App();
181- // $config->baseURL = '';
182- // $config->indexPage = 'index.php';
183- // $request = Services::request($config);
184- // $request->uri = new URI('http://example.com/');
185- //
186- // Services::injectMock('request', $request);
187- //
188- // $filters = Services::filters();
189- // $filters->globals['before'][] = 'csrf'; // force CSRF
190- // $before = $filters->globals['before'];
191- //
192- // $Value = csrf_hash();
193- // $Name = csrf_token();
194- // $expected = <<<EOH
195- //<form action="http://example.com/index.php/foo/bar" name="form" id="form" method="POST" accept-charset="utf-8">
196- //<input type="hidden" name="foo" value="bar" style="display: none;" />
197- //<input type="hidden" name="$Name" value="$Value" style="display: none;" />
198- //
199- //EOH;
200- //
201- // $attributes = [
202- // 'name' => 'form',
203- // 'id' => 'form',
204- // 'method' => 'POST'
205- // ];
206- // $hidden = [
207- // 'foo' => 'bar'
208- // ];
209- // $this->assertEquals($expected, form_open('foo/bar', $attributes, $hidden));
210- // }
211176 // ------------------------------------------------------------------------
212177 public function testFormOpenMultipart ()
213178 {
0 commit comments