@@ 65-75 (lines=11) @@ | ||
62 | * @return void |
|
63 | * @see \PHPUnit\Framework\TestCase::setUp() |
|
64 | */ |
|
65 | protected function setUp() |
|
66 | { |
|
67 | ||
68 | // initialize a mock processor instance |
|
69 | $this->mockProductUrlRewriteProcessor = $this->getMockBuilder('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface') |
|
70 | ->setMethods(get_class_methods('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface')) |
|
71 | ->getMock(); |
|
72 | ||
73 | // initialize the observer |
|
74 | $this->observer = new UrlRewriteUpdateObserver($this->mockProductUrlRewriteProcessor); |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * Test's the handle() method with a successfull URL rewrite persist when using different categories. |
@@ 67-77 (lines=11) @@ | ||
64 | * @return void |
|
65 | * @see \PHPUnit\Framework\TestCase::setUp() |
|
66 | */ |
|
67 | protected function setUp() |
|
68 | { |
|
69 | ||
70 | // initialize a mock processor instance |
|
71 | $this->mockProductUrlRewriteProcessor = $this->getMockBuilder('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface') |
|
72 | ->setMethods(get_class_methods('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface')) |
|
73 | ->getMock(); |
|
74 | ||
75 | // initialize the observer |
|
76 | $this->observer = new UrlRewriteObserver($this->mockProductUrlRewriteProcessor); |
|
77 | } |
|
78 | ||
79 | /** |
|
80 | * Create's and invokes the UrlRewriteObserver instance. |