Blame view

framework/tests/forms/FormActionTest.php 383 Bytes
70f4f18b   Administrator   first_commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php
  
  /**
   * @package framework
   * @subpackage tests
   */
  class FormActionTest extends SapphireTest {
  	
  	public function testGetField() {
  		$formAction = new FormAction('test');
  		$this->assertContains('type="submit"',  $formAction->getAttributesHTML());
  
  		$formAction->setAttribute('src', 'file.png');
  		$this->assertContains('type="image"', $formAction->getAttributesHTML());
  	}
  }