public function SoftLengthLimitWebTestCase::testAll in Soft Length Limit 7
Tests that input element has the attributes that the javascript should use.
File
- ./
soft_length_limit.test, line 84 - Test case for soft_length_limit module
Class
- SoftLengthLimitWebTestCase
- Tests the relevant functionality provided by the soft_length_limit module.
Code
public function testAll() {
$this
->assertPattern('/<textarea .*class="[^"]*soft-length-limit[^"]*".*data-soft-length-limit="666"/', 'HTML element should contain the necessary attributesfor the soft length limiter javascript');
}