Code Duplication    Length = 7-8 lines in 4 locations

src/test/Resources/Commands/DeleteImageSizesResourceCommandTest.php 1 location

@@ 26-32 (lines=7) @@
23
     */
24
    protected $wrongFiles;
25
26
    protected function setUp()
27
    {
28
        parent::setUp();
29
        $this->resourceDO = new ResourceDO();
30
        $this->filesystem = new Filesystem(new MemoryAdapter());
31
        $this->wrongFiles = new AddWrongFilesToDiskHelper($this->filesystem, $this);
32
    }
33
34
    /**
35
     * @return BackupResourceCommand

src/test/Resources/Commands/DeleteSafetyResourceCommandTest.php 1 location

@@ 25-31 (lines=7) @@
22
     */
23
    protected $wrongFiles;
24
25
    protected function setUp()
26
    {
27
        parent::setUp();
28
        $this->resourceDO = new ResourceDO();
29
        $this->filesystem = new Filesystem(new MemoryAdapter());
30
        $this->wrongFiles = new AddWrongFilesToDiskHelper($this->filesystem, $this);
31
    }
32
33
    /**
34
     * @return BackupResourceCommand

src/test/Resources/Commands/DestroyResourceCommandTest.php 1 location

@@ 24-31 (lines=8) @@
21
     */
22
    protected $wrongFiles;
23
24
    protected function setUp()
25
    {
26
        parent::setUp();
27
        $this->resourceDO = new ResourceDO();
28
        $this->filesystem = new Filesystem(new MemoryAdapter());
29
        $this->wrongFiles = new AddWrongFilesToDiskHelper($this->filesystem, $this);
30
31
    }
32
33
    /**
34
     * @return BackupResourceCommand

src/test/Resources/Commands/FindResourceOptionsCommandTest.php 1 location

@@ 28-34 (lines=7) @@
25
     */
26
    protected $wrongFiles;
27
28
    protected function setUp()
29
    {
30
        parent::setUp();
31
        $this->resourceDO = new ResourceDO();
32
        $this->filesystem = new Filesystem(new MemoryAdapter());
33
        $this->wrongFiles = new AddWrongFilesToDiskHelper($this->filesystem, $this);
34
    }
35
36
    /**
37
     * @return FindResourceOptionsCommand