| @@ 165-175 (lines=11) @@ | ||
| 162 | $this->assertEquals($expected, $result); |
|
| 163 | } |
|
| 164 | ||
| 165 | public function provideShortCodeToBeEmptyWithoutUrl() |
|
| 166 | { |
|
| 167 | return array( |
|
| 168 | array('[mauticform id="1"]'), |
|
| 169 | array('[mautic type="form" id="1"]'), |
|
| 170 | array('[mautictags values="tag,-tag2,tag3"]'), |
|
| 171 | array('[mautic type="tags" values="tag,tag2,-tag3"]'), |
|
| 172 | array('[mauticfocus id="1"]'), |
|
| 173 | array('[mautic type="focus" id="1"]'), |
|
| 174 | ); |
|
| 175 | } |
|
| 176 | ||
| 177 | /** |
|
| 178 | * @dataProvider provideShortCodeToBeEmpty |
|
| @@ 189-199 (lines=11) @@ | ||
| 186 | $this->assertEmpty($result); |
|
| 187 | } |
|
| 188 | ||
| 189 | public function provideShortCodeToBeEmpty() |
|
| 190 | { |
|
| 191 | return array( |
|
| 192 | array('[mauticform]'), |
|
| 193 | array('[mautic type="form"]'), |
|
| 194 | array('[mautictags]'), |
|
| 195 | array('[mautic type="tags"]'), |
|
| 196 | array('[mauticfocus]'), |
|
| 197 | array('[mautic type="focus"]'), |
|
| 198 | ); |
|
| 199 | } |
|
| 200 | ||
| 201 | /** |
|
| 202 | * @dataProvider provideShortCodeToBeEmpty |
|