src/Tests/PreviewTest.php 1 location
|
@@ 63-69 (lines=7) @@
|
| 60 |
|
* @return string |
| 61 |
|
* The retrieved HTML string. |
| 62 |
|
*/ |
| 63 |
|
public function getRoute($filter_format_id, $value = NULL) { |
| 64 |
|
$url = 'embed/preview/' . $filter_format_id; |
| 65 |
|
if (!isset($value)) { |
| 66 |
|
$value = static::SUCCESS; |
| 67 |
|
} |
| 68 |
|
return $this->drupalGet($url, ['query' => ['value' => $value]]); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
} |
| 72 |
|
|
src/Tests/EmbedButtonEditorAccessCheckTest.php 1 location
|
@@ 103-109 (lines=7) @@
|
| 100 |
|
* @return string |
| 101 |
|
* The retrieved HTML string. |
| 102 |
|
*/ |
| 103 |
|
public function getRoute($editor_id, $embed_button_id, $value = NULL) { |
| 104 |
|
$url = 'embed-test/access/' . $editor_id . '/' . $embed_button_id; |
| 105 |
|
if (!isset($value)) { |
| 106 |
|
$value = static::SUCCESS; |
| 107 |
|
} |
| 108 |
|
return $this->drupalGet($url, ['query' => ['value' => $value]]); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
} |
| 112 |
|
|