Code Duplication    Length = 18-18 lines in 2 locations

tests/MailChimp/NewsletterTest.php 2 locations

@@ 315-332 (lines=18) @@
312
    }
313
314
    /** @test */
315
    public function it_can_get_the_member()
316
    {
317
        $email = '[email protected]';
318
319
        $subscriberHash = 'abc123';
320
321
        $this->mailChimpApi->shouldReceive('subscriberHash')
322
            ->once()
323
            ->withArgs([$email])
324
            ->andReturn($subscriberHash);
325
326
        $this->mailChimpApi
327
            ->shouldReceive('get')
328
            ->once()
329
            ->withArgs(["lists/123/members/{$subscriberHash}"]);
330
331
        $this->newsletter->getMember($email);
332
    }
333
334
    /** @test */
335
    public function it_can_get_the_member_from_a_specific_list()
@@ 335-352 (lines=18) @@
332
    }
333
334
    /** @test */
335
    public function it_can_get_the_member_from_a_specific_list()
336
    {
337
        $email = '[email protected]';
338
339
        $subscriberHash = 'abc123';
340
341
        $this->mailChimpApi->shouldReceive('subscriberHash')
342
            ->once()
343
            ->withArgs([$email])
344
            ->andReturn($subscriberHash);
345
346
        $this->mailChimpApi
347
            ->shouldReceive('get')
348
            ->once()
349
            ->withArgs(["lists/456/members/{$subscriberHash}"]);
350
351
        $this->newsletter->getMember($email, 'list2');
352
    }
353
354
    /** @test */
355
    public function is_can_create_a_campaign()