Permalink
Browse files

use input_with_value() in testSelectWithValue()

  • Loading branch information...
1 parent 94caceb commit 6d4557ca102b7ac17d052e7cddebc7339f78f191 @scribu committed Feb 21, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/test-forms.php
View
@@ -266,10 +266,11 @@ function testSelectWithValue() {
'name' => __FUNCTION__,
'type' => 'select',
'choices' => $choices,
- 'selected' => '1 1/3'
);
- $label = self::domify( scbForms::input( $args ) )->find('//label');
+ $output = scbForms::input_with_value( $args, '1 1/3' );
+
+ $label = self::domify( $output )->find('//label');
$selected = $label->find('.//select/option[@selected]');

0 comments on commit 6d4557c

Please sign in to comment.