public function testDoOperation()
 {
     $files = ['file1', 'file2'];
     $this->configurationScannerMock->expects($this->once())->method('scan')->with('extension_attributes.xml')->willReturn($files);
     $this->serviceDataAttributesScannerMock->expects($this->once())->method('collectEntities')->with($files)->willReturn([]);
     $this->model->doOperation();
 }
 public function testDoOperation()
 {
     $data = ['paths' => ['path/to/app'], 'filePatterns' => ['di' => 'di.xml']];
     $files = ['extension_attributes' => []];
     $model = new ServiceDataAttributesGenerator($this->directoryScannerMock, $this->serviceDataAttributesScannerMock, $data);
     $this->directoryScannerMock->expects($this->once())->method('scan')->with($data['paths'][0], $data['filePatterns'])->willReturn($files);
     $this->serviceDataAttributesScannerMock->expects($this->once())->method('collectEntities')->with($files['extension_attributes'])->willReturn([]);
     $model->doOperation();
 }