@@ 60-70 (lines=11) @@ | ||
57 | * @return void |
|
58 | * @see \PHPUnit_Framework_TestCase::setUp() |
|
59 | */ |
|
60 | protected function setUp() |
|
61 | { |
|
62 | ||
63 | // mock the attribute bunch processor |
|
64 | $this->mockBunchProcessor = $this->getMockBuilder('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface') |
|
65 | ->setMethods(get_class_methods('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface')) |
|
66 | ->getMock(); |
|
67 | ||
68 | // the observer instance we want to test |
|
69 | $this->observer = new CatalogAttributeObserver($this->mockBunchProcessor); |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * Test's the handle() method successfull. |
@@ 60-70 (lines=11) @@ | ||
57 | * @return void |
|
58 | * @see \PHPUnit_Framework_TestCase::setUp() |
|
59 | */ |
|
60 | protected function setUp() |
|
61 | { |
|
62 | ||
63 | // mock the attribute bunch processor |
|
64 | $this->mockBunchProcessor = $this->getMockBuilder('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface') |
|
65 | ->setMethods(get_class_methods('TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface')) |
|
66 | ->getMock(); |
|
67 | ||
68 | // the observer instance we want to test |
|
69 | $this->observer = new CatalogAttributeUpdateObserver($this->mockBunchProcessor); |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * Test's the handle() method successfull. |