1 | <?php |
||
2 | |||
3 | /** |
||
4 | * MIT License |
||
5 | * For full license information, please view the LICENSE file that was distributed with this source code. |
||
6 | */ |
||
7 | |||
8 | namespace SprykerTest\Zed\ProductListDataImport; |
||
9 | |||
10 | use Codeception\Actor; |
||
11 | use Generated\Shared\Transfer\DataImporterConfigurationTransfer; |
||
12 | use Generated\Shared\Transfer\DataImporterReaderConfigurationTransfer; |
||
13 | |||
14 | /** |
||
15 | * @method void wantToTest($text) |
||
16 | * @method void wantTo($text) |
||
17 | * @method void execute($callable) |
||
18 | * @method void expectTo($prediction) |
||
19 | * @method void expect($prediction) |
||
20 | * @method void amGoingTo($argumentation) |
||
21 | * @method void am($role) |
||
22 | * @method void lookForwardTo($achieveValue) |
||
23 | * @method void comment($description) |
||
24 | * @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null) |
||
25 | * |
||
26 | * @SuppressWarnings(PHPMD) |
||
27 | */ |
||
28 | class ProductListDataImportCommunicationTester extends Actor |
||
29 | { |
||
30 | use _generated\ProductListDataImportCommunicationTesterActions; |
||
31 | |||
32 | /** |
||
33 | * @param string $filePath |
||
34 | * |
||
35 | * @return \Generated\Shared\Transfer\DataImporterConfigurationTransfer |
||
36 | */ |
||
37 | public function getDataImporterReaderConfigurationTransfer(string $filePath): DataImporterConfigurationTransfer |
||
38 | { |
||
39 | $dataImporterReaderConfigurationTransfer = new DataImporterReaderConfigurationTransfer(); |
||
40 | $dataImporterReaderConfigurationTransfer->setFileName(codecept_data_dir() . $filePath); |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
41 | $dataImportConfigurationTransfer = new DataImporterConfigurationTransfer(); |
||
42 | $dataImportConfigurationTransfer->setReaderConfiguration($dataImporterReaderConfigurationTransfer); |
||
43 | |||
44 | return $dataImportConfigurationTransfer; |
||
45 | } |
||
46 | } |
||
47 |