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