| @@ 104-118 (lines=15) @@ | ||
| 101 | $this->info('JsonApi demo entities generated successfully.'); |
|
| 102 | } |
|
| 103 | ||
| 104 | protected function setupTest() |
|
| 105 | { |
|
| 106 | foreach ($this->migrations as $key => $value) { |
|
| 107 | $this->migrations[$key] = $value . $this->testPostfix; |
|
| 108 | } |
|
| 109 | foreach ($this->seeds as $key => $value) { |
|
| 110 | $this->seeds[$key] = $value . $this->testPostfix; |
|
| 111 | } |
|
| 112 | foreach ($this->controllers as $key => $value) { |
|
| 113 | $this->controllers[$key] = $value . $this->testPostfix; |
|
| 114 | } |
|
| 115 | foreach ($this->models as $key => $value) { |
|
| 116 | $this->models[$key] = $value . $this->testPostfix; |
|
| 117 | } |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * use fake file system for tests |
|
| @@ 149-168 (lines=20) @@ | ||
| 146 | $this->info('JsonApi demo entities removed successfully.'); |
|
| 147 | } |
|
| 148 | ||
| 149 | protected function setupTest() |
|
| 150 | { |
|
| 151 | foreach ($this->migrations as $key => $value) { |
|
| 152 | $this->migrations[$key] = $value . $this->testPostfix; |
|
| 153 | } |
|
| 154 | foreach ($this->seeds as $key => $value) { |
|
| 155 | $this->seeds[$key] = $value . $this->testPostfix; |
|
| 156 | } |
|
| 157 | foreach ($this->controllers as $key => $value) { |
|
| 158 | $this->controllers[$key] = $value . $this->testPostfix; |
|
| 159 | } |
|
| 160 | foreach ($this->models as $key => $value) { |
|
| 161 | $this->models[$key] = $value . $this->testPostfix; |
|
| 162 | } |
|
| 163 | $this->jsonapiEntities = $this->jsonapiEntitiesTest; |
|
| 164 | ||
| 165 | // foreach ($this->jsonapiEntities as $key => $value) { |
|
| 166 | // $this->jsonapiEntities[$key] = $value . $this->testPostfix; |
|
| 167 | // } |
|
| 168 | } |
|
| 169 | ||
| 170 | protected function removeModels() |
|
| 171 | { |
|