Code Duplication    Length = 13-14 lines in 3 locations

tests/Decorators/MTGAuctionDecoratorTest.php 3 locations

@@ 68-81 (lines=14) @@
65
    }
66
67
68
    public function testFromArray()
69
    {
70
        $auction = $this->getMockBuilder(Auction::class)
71
            ->setMethods(['fromArray'])
72
            ->getMock();
73
74
        $auction->expects($this->once())
75
            ->method('fromArray')
76
            ->with($this->getTestFidArray())
77
            ->willReturn(null);
78
        $decorator = new MTGRedAuctionDecorator($auction);
79
80
        $decorator->fromArray($this->getTestArray());
81
    }
82
83
84
    public function testToArray()
@@ 84-96 (lines=13) @@
81
    }
82
83
84
    public function testToArray()
85
    {
86
        $auction = $this->getMockBuilder(Auction::class)
87
            ->setMethods(['toArray'])
88
            ->getMock();
89
90
        $auction->expects($this->once())
91
            ->method('toArray')
92
            ->willReturn($this->getTestFidArray());
93
        $decorator = new MTGRedAuctionDecorator($auction);
94
95
        $this->assertSame($this->getTestArray(), $decorator->toArray());
96
    }
97
98
99
    public function testSetPhotos()
@@ 99-112 (lines=14) @@
96
    }
97
98
99
    public function testSetPhotos()
100
    {
101
        $auction = $this->getMockBuilder(Auction::class)
102
            ->setMethods(['setPhotos'])
103
            ->getMock();
104
105
        $auction->expects($this->once())
106
            ->method('setPhotos')
107
            ->with($this->getTestPhotoArray())
108
            ->willReturn(null);
109
110
        $decorator = new MTGRedAuctionDecorator($auction);
111
        $decorator->setPhotos($this->getTestPhotoArray());
112
    }
113
114
115
    public function testToApiRepresentation()