|
@@ 990-1002 (lines=13) @@
|
| 987 |
|
); |
| 988 |
|
} |
| 989 |
|
|
| 990 |
|
if ( 'date' === $attributes['type'] ) { |
| 991 |
|
$this->assertEquals( |
| 992 |
|
$input->getAttribute( 'class' ), |
| 993 |
|
"{$attributes['type']} jp-contact-form-date", |
| 994 |
|
'input class attribute doesn\'t match' |
| 995 |
|
); |
| 996 |
|
} else { |
| 997 |
|
$this->assertEquals( |
| 998 |
|
$input->getAttribute( 'class' ), |
| 999 |
|
"{$attributes['type']} {$attributes['class']}", |
| 1000 |
|
'input class attribute doesn\'t match' |
| 1001 |
|
); |
| 1002 |
|
} |
| 1003 |
|
} |
| 1004 |
|
|
| 1005 |
|
/** |
|
@@ 1094-1098 (lines=5) @@
|
| 1091 |
|
|
| 1092 |
|
$input = $this->getFirstElement( $item_label, 'input' ); |
| 1093 |
|
$this->assertEquals( $input->getAttribute( 'type' ), $attributes['input_type'], 'Type doesn\'t match' ); |
| 1094 |
|
if ( 'radio' === $attributes['input_type'] ) { |
| 1095 |
|
$this->assertEquals( $input->getAttribute( 'name' ), $attributes['id'], 'Input name doesn\'t match' ); |
| 1096 |
|
} else { |
| 1097 |
|
$this->assertEquals( $input->getAttribute( 'name' ), $attributes['id'] . '[]', 'Input name doesn\'t match' ); |
| 1098 |
|
} |
| 1099 |
|
$this->assertEquals( $input->getAttribute( 'value' ), $attributes['values'][ $i ], 'Input value doesn\'t match' ); |
| 1100 |
|
$this->assertEquals( $input->getAttribute( 'class' ), $attributes['type'] . ' ' . $attributes['class'], 'Input class doesn\'t match' ); |
| 1101 |
|
if ( 0 === $i ) { |