|
@@ 67-78 (lines=12) @@
|
| 64 |
|
$this->assertRegExp('/value="header"\s+checked/', $output); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
public function test_script_location_setting_with_footer_checked() |
| 68 |
|
{ |
| 69 |
|
update_option('wpmautic_options', array( |
| 70 |
|
'script_location' => 'footer' |
| 71 |
|
)); |
| 72 |
|
|
| 73 |
|
wpmautic_script_location(); |
| 74 |
|
$output = $this->getActualOutput(); |
| 75 |
|
$this->assertContains("wpmautic_script_location", $output); |
| 76 |
|
$this->assertContains("wpmautic_options[script_location]", $output); |
| 77 |
|
$this->assertRegExp('/value="footer"\s+checked/', $output); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
public function test_fallback_activated_setting_with_default() |
| 81 |
|
{ |
|
@@ 89-100 (lines=12) @@
|
| 86 |
|
$this->assertContains("checked", $output); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
public function test_fallback_activated_setting_with_unchecked() |
| 90 |
|
{ |
| 91 |
|
update_option('wpmautic_options', array( |
| 92 |
|
'fallback_activated' => false |
| 93 |
|
)); |
| 94 |
|
|
| 95 |
|
wpmautic_fallback_activated(); |
| 96 |
|
$output = $this->getActualOutput(); |
| 97 |
|
$this->assertContains("wpmautic_fallback_activated", $output); |
| 98 |
|
$this->assertContains("wpmautic_options[fallback_activated]", $output); |
| 99 |
|
$this->assertNotContains("checked", $output); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
public function test_fallback_activated_setting_with_checked() |
| 103 |
|
{ |