Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function testGetTitle() |
||
21 | { |
||
22 | // Test that description overrides title attribute, but doesn't prevent it from |
||
23 | // working if blank. |
||
24 | $action = new FormAction('test'); |
||
25 | $action->setAttribute('title', 'this is the title'); |
||
26 | $this->assertEquals('this is the title', $action->getAttribute('title')); |
||
27 | $action->setDescription('this is a better title'); |
||
28 | $this->assertEquals('this is a better title', $action->getAttribute('title')); |
||
29 | $action->setDescription(null); |
||
30 | $this->assertEquals('this is the title', $action->getAttribute('title')); |
||
31 | } |
||
33 |