| @@ 348-361 (lines=14) @@ | ||
| 345 | /** |
|
| 346 | * @return $this |
|
| 347 | */ |
|
| 348 | protected function createWebSite() |
|
| 349 | { |
|
| 350 | $website = new Website(); |
|
| 351 | $website->setName('web site'); |
|
| 352 | $website->setOriginId(1); |
|
| 353 | $website->setCode('web site code'); |
|
| 354 | $website->setChannel($this->integration); |
|
| 355 | ||
| 356 | $this->setReference('website', $website); |
|
| 357 | $this->em->persist($website); |
|
| 358 | $this->website = $website; |
|
| 359 | ||
| 360 | return $this; |
|
| 361 | } |
|
| 362 | ||
| 363 | /** |
|
| 364 | * @return $this |
|
| @@ 366-380 (lines=15) @@ | ||
| 363 | /** |
|
| 364 | * @return $this |
|
| 365 | */ |
|
| 366 | protected function createStore() |
|
| 367 | { |
|
| 368 | $store = new Store; |
|
| 369 | $store->setName('demo store'); |
|
| 370 | $store->setChannel($this->integration); |
|
| 371 | $store->setCode(1); |
|
| 372 | $store->setWebsite($this->website); |
|
| 373 | $store->setOriginId(1); |
|
| 374 | ||
| 375 | $this->em->persist($store); |
|
| 376 | $this->store = $store; |
|
| 377 | $this->setReference('store', $store); |
|
| 378 | ||
| 379 | return $this; |
|
| 380 | } |
|
| 381 | ||
| 382 | /** |
|
| 383 | * @return Account |
|