Code Duplication    Length = 13-14 lines in 2 locations

tests/unit/YahooShoppingJp/Request/UpdateOrderShippingStatusRequestTest.php 2 locations

@@ 132-144 (lines=13) @@
129
    /**
130
     * @test
131
     */
132
    public function it_sets_ship_status_and_returns_itself()
133
    {
134
        $request = new UpdateOrderShippingStatusRequest;
135
136
        $this->assertSame($request,
137
            $request->setSellerId('SELLER_ID')
138
                ->setOrderId('ORDER_ID')
139
                ->setIsPointFix(false)
140
                ->setShipStatus(ShipStatus::SHIPPABLE()));
141
        $simpleXml = simplexml_load_string($request->getParams());
142
143
        $this->assertEquals(ShipStatus::SHIPPABLE()->getValue(), $simpleXml->Order->Ship->ShipStatus->__toString());
144
    }
145
146
    /**
147
     * @test
@@ 161-174 (lines=14) @@
158
    /**
159
     * @test
160
     */
161
    public function it_sets_ship_method_and_returns_itself()
162
    {
163
        $request = new UpdateOrderShippingStatusRequest;
164
165
        $this->assertSame($request,
166
            $request->setSellerId('SELLER_ID')
167
                ->setOrderId('ORDER_ID')
168
                ->setIsPointFix(false)
169
                ->setShipStatus(ShipStatus::SHIPPABLE())
170
                ->setShipMethod(ShipMethod::METHOD1()));
171
        $simpleXml = simplexml_load_string($request->getParams());
172
173
        $this->assertEquals(ShipMethod::METHOD1()->getValue(), $simpleXml->Order->Ship->ShipMethod->__toString());
174
    }
175
176
    /**
177
     * @test