Code Duplication    Length = 18-18 lines in 2 locations

tests/MailChimp/NewsletterTest.php 2 locations

@@ 405-422 (lines=18) @@
402
    }
403
404
    /** @test */
405
    public function it_can_get_the_member()
406
    {
407
        $email = '[email protected]';
408
409
        $subscriberHash = 'abc123';
410
411
        $this->mailChimpApi->shouldReceive('subscriberHash')
412
            ->once()
413
            ->withArgs([$email])
414
            ->andReturn($subscriberHash);
415
416
        $this->mailChimpApi
417
            ->shouldReceive('get')
418
            ->once()
419
            ->withArgs(["lists/123/members/{$subscriberHash}"]);
420
421
        $this->newsletter->getMember($email);
422
    }
423
424
    /** @test */
425
    public function it_can_get_the_member_activity()
@@ 445-462 (lines=18) @@
442
    }
443
444
    /** @test */
445
    public function it_can_get_the_member_from_a_specific_list()
446
    {
447
        $email = '[email protected]';
448
449
        $subscriberHash = 'abc123';
450
451
        $this->mailChimpApi->shouldReceive('subscriberHash')
452
            ->once()
453
            ->withArgs([$email])
454
            ->andReturn($subscriberHash);
455
456
        $this->mailChimpApi
457
            ->shouldReceive('get')
458
            ->once()
459
            ->withArgs(["lists/456/members/{$subscriberHash}"]);
460
461
        $this->newsletter->getMember($email, 'list2');
462
    }
463
464
    /** @test */
465
    public function is_can_create_a_campaign()