| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testKnockoutDropdownField() |
||
| 14 | { |
||
| 15 | $field = KnockoutDropdownField::create( |
||
| 16 | "SpaceExploration", |
||
| 17 | "Space Exploration", |
||
| 18 | array( |
||
| 19 | "Rocket" => "Rocket", |
||
| 20 | "Launcher" => "Launcher", |
||
| 21 | "Blast Off" => "Blast Off" |
||
| 22 | ), |
||
| 23 | "Blast Off" |
||
| 24 | )->setObservable('spaceship'); |
||
| 25 | |||
| 26 | $this->assertEquals( |
||
| 27 | "spaceship", |
||
| 28 | $field->getObservable(), |
||
| 29 | "observable can be obtained" |
||
| 30 | ); |
||
| 33 |