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