tests/FwlibTest/Html/Generator/Component/ButtonSetTest.php 1 location
|
@@ 113-124 (lines=12) @@
|
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
|
| 113 |
|
public function testGetOutputWithoutJs() |
| 114 |
|
{ |
| 115 |
|
$buttonSet = $this->buildMock(); |
| 116 |
|
|
| 117 |
|
$buttonSet->setContainerClass('') |
| 118 |
|
->setSleepTime(3000); |
| 119 |
|
$this->assertNotRegExp('/<script /', $buttonSet->getOutput()); |
| 120 |
|
|
| 121 |
|
$buttonSet->setContainerClass('foo') |
| 122 |
|
->setSleepTime(0); |
| 123 |
|
$this->assertNotRegExp('/<script /', $buttonSet->getOutput()); |
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
|
tests/FwlibTest/Html/Generator/Element/SubmitButtonTest.php 1 location
|
@@ 39-49 (lines=11) @@
|
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
|
| 39 |
|
public function testGetOutputWithoutJs() |
| 40 |
|
{ |
| 41 |
|
$element = $this->buildMock(); |
| 42 |
|
|
| 43 |
|
$element->setId(''); |
| 44 |
|
$this->assertNotRegExp('/<script /', $element->getOutput()); |
| 45 |
|
|
| 46 |
|
$element->setId('foo') |
| 47 |
|
->setConfig('sleepTime', 0); |
| 48 |
|
$this->assertNotRegExp('/<script /', $element->getOutput()); |
| 49 |
|
} |
| 50 |
|
} |
| 51 |
|
|