@@ -51,28 +51,28 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | // create a mock logger |
| 53 | 53 | $mockLogger = $this->getMockBuilder('Psr\Log\LoggerInterface') |
| 54 | - ->setMethods(get_class_methods('Psr\Log\LoggerInterface')) |
|
| 55 | - ->getMock(); |
|
| 54 | + ->setMethods(get_class_methods('Psr\Log\LoggerInterface')) |
|
| 55 | + ->getMock(); |
|
| 56 | 56 | |
| 57 | 57 | // create a mock subject configuration |
| 58 | 58 | $mockSubjectConfiguration = $this->getMockBuilder('TechDivision\Import\Configuration\SubjectConfigurationInterface') |
| 59 | - ->setMethods(get_class_methods('TechDivision\Import\Configuration\SubjectConfigurationInterface')) |
|
| 60 | - ->getMock(); |
|
| 59 | + ->setMethods(get_class_methods('TechDivision\Import\Configuration\SubjectConfigurationInterface')) |
|
| 60 | + ->getMock(); |
|
| 61 | 61 | |
| 62 | 62 | // create a mock registry processor |
| 63 | 63 | $mockRegistryProcessor = $this->getMockBuilder('TechDivision\Import\Services\RegistryProcessorInterface') |
| 64 | - ->setMethods(get_class_methods('TechDivision\Import\Services\RegistryProcessorInterface')) |
|
| 65 | - ->getMock(); |
|
| 64 | + ->setMethods(get_class_methods('TechDivision\Import\Services\RegistryProcessorInterface')) |
|
| 65 | + ->getMock(); |
|
| 66 | 66 | |
| 67 | 67 | // create a mock category processor |
| 68 | 68 | $mockCategoryProcessor = $this->getMockBuilder('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface') |
| 69 | - ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface')) |
|
| 70 | - ->getMock(); |
|
| 69 | + ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface')) |
|
| 70 | + ->getMock(); |
|
| 71 | 71 | |
| 72 | 72 | // create a generator |
| 73 | 73 | $mockGenerator = $this->getMockBuilder('TechDivision\Import\Utils\Generators\GeneratorInterface') |
| 74 | - ->setMethods(get_class_methods('TechDivision\Import\Utils\Generators\GeneratorInterface')) |
|
| 75 | - ->getMock(); |
|
| 74 | + ->setMethods(get_class_methods('TechDivision\Import\Utils\Generators\GeneratorInterface')) |
|
| 75 | + ->getMock(); |
|
| 76 | 76 | |
| 77 | 77 | // create the subject to be tested |
| 78 | 78 | $this->subject = new EeBunchSubject( |
@@ -94,12 +94,12 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | // create a mock category processor |
| 96 | 96 | $mockProcessor = $this->getMockBuilder('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface') |
| 97 | - ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface')) |
|
| 98 | - ->getMock(); |
|
| 97 | + ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface')) |
|
| 98 | + ->getMock(); |
|
| 99 | 99 | $mockProcessor->expects($this->once()) |
| 100 | - ->method('persistCategory') |
|
| 101 | - ->with($category = array('path' => '2/3/4')) |
|
| 102 | - ->willReturn(null); |
|
| 100 | + ->method('persistCategory') |
|
| 101 | + ->with($category = array('path' => '2/3/4')) |
|
| 102 | + ->willReturn(null); |
|
| 103 | 103 | |
| 104 | 104 | // inject the processor |
| 105 | 105 | $this->subject->setCategoryProcessor($mockProcessor); |