| @@ 431-444 (lines=14) @@ | ||
| 428 | /** |
|
| 429 | * @return $this |
|
| 430 | */ |
|
| 431 | protected function createWebSite() |
|
| 432 | { |
|
| 433 | $website = new Website(); |
|
| 434 | $website->setName('web site'); |
|
| 435 | $website->setOriginId(1); |
|
| 436 | $website->setCode('web site code'); |
|
| 437 | $website->setChannel($this->integration); |
|
| 438 | ||
| 439 | $this->setReference('website', $website); |
|
| 440 | $this->em->persist($website); |
|
| 441 | $this->website = $website; |
|
| 442 | ||
| 443 | return $this; |
|
| 444 | } |
|
| 445 | ||
| 446 | /** |
|
| 447 | * @return $this |
|
| @@ 449-463 (lines=15) @@ | ||
| 446 | /** |
|
| 447 | * @return $this |
|
| 448 | */ |
|
| 449 | protected function createStore() |
|
| 450 | { |
|
| 451 | $store = new Store; |
|
| 452 | $store->setName('demo store'); |
|
| 453 | $store->setChannel($this->integration); |
|
| 454 | $store->setCode(1); |
|
| 455 | $store->setWebsite($this->website); |
|
| 456 | $store->setOriginId(1); |
|
| 457 | ||
| 458 | $this->em->persist($store); |
|
| 459 | $this->store = $store; |
|
| 460 | $this->setReference('store', $store); |
|
| 461 | ||
| 462 | return $this; |
|
| 463 | } |
|
| 464 | ||
| 465 | /** |
|
| 466 | * @return Account |
|