|
@@ 57-65 (lines=9) @@
|
| 54 |
|
$this->getAndSetFooterArea(); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
protected function addParentContent($parent_function) |
| 58 |
|
{ |
| 59 |
|
$parent_base = __DIR__ . '/../../stubs/parent.txt'; |
| 60 |
|
$base = $this->getFilesystem()->get($parent_base); |
| 61 |
|
|
| 62 |
|
$base = str_replace("[PARENT_METHOD]", $parent_function, $base); |
| 63 |
|
|
| 64 |
|
$this->dusk_class_and_methods_string = $this->dusk_class_and_methods_string . $base; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
protected function addSteps(array $steps) |
| 68 |
|
{ |
|
@@ 89-96 (lines=8) @@
|
| 86 |
|
} |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
protected function getAndSetHeaderArea() |
| 90 |
|
{ |
| 91 |
|
$path = __DIR__ . '/../../stubs/header.txt'; |
| 92 |
|
$content = $this->getFilesystem()->get($path); |
| 93 |
|
|
| 94 |
|
$content = str_replace("[TEST_NAME]", $this->write_class_name, $content); |
| 95 |
|
$this->dusk_class_and_methods_string = $content; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
protected function getAndSetFooterArea() |
| 99 |
|
{ |