Skip to content

Commit

Permalink
add a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Nov 3, 2015
1 parent 57c931a commit 0f2d7ff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -987,6 +987,17 @@ public function testStyledFormSubmit()
]
];
$this->assertHtml($expected, $result);

$result = $this->Form->submit('Submit', ['class' => ['btn', 'btn-block']]);
$expected = [
'div' => ['class' => 'submit'],
'input' => [
'type' => 'submit',
'value' => 'Submit',
'class' => 'btn btn-block',
]
];
$this->assertHtml($expected, $result);
}

public function testStyledButton()
Expand Down

0 comments on commit 0f2d7ff

Please sign in to comment.