Code Duplication    Length = 19-19 lines in 2 locations

tests/MailChimp/NewsletterTest.php 2 locations

@@ 175-193 (lines=19) @@
172
    }
173
174
    /** @test */
175
    public function it_can_override_the_defaults_when_subscribing_someone()
176
    {
177
        $email = '[email protected]';
178
179
        $url = 'lists/123/members';
180
181
        $this->mailChimpApi->shouldReceive('post')
182
            ->once()
183
            ->withArgs([
184
                $url,
185
                [
186
                    'email_address' => $email,
187
                    'status' => 'pending',
188
                    'email_type' => 'text',
189
                ],
190
            ]);
191
192
        $this->newsletter->subscribe($email, [], '', ['email_type' => 'text', 'status' => 'pending']);
193
    }
194
195
    /** @test */
196
    public function it_can_override_the_defaults_when_subscribing_or_updating_someone()
@@ 196-214 (lines=19) @@
193
    }
194
195
    /** @test */
196
    public function it_can_override_the_defaults_when_subscribing_or_updating_someone()
197
    {
198
        $email = '[email protected]';
199
200
        $url = 'lists/123/members';
201
202
        $this->mailChimpApi->shouldReceive('put')
203
            ->once()
204
            ->withArgs([
205
                $url,
206
                [
207
                    'email_address' => $email,
208
                    'status' => 'pending',
209
                    'email_type' => 'text',
210
                ],
211
            ]);
212
213
        $this->newsletter->subscribeOrUpdate($email, [], '', ['email_type' => 'text', 'status' => 'pending']);
214
    }
215
216
    /** @test */
217
    public function it_can_unsubscribe_someone()