Code Duplication    Length = 18-18 lines in 2 locations

tests/MailChimp/NewsletterTest.php 2 locations

@@ 343-360 (lines=18) @@
340
    }
341
342
    /** @test */
343
    public function it_can_get_the_member()
344
    {
345
        $email = '[email protected]';
346
347
        $subscriberHash = 'abc123';
348
349
        $this->mailChimpApi->shouldReceive('subscriberHash')
350
            ->once()
351
            ->withArgs([$email])
352
            ->andReturn($subscriberHash);
353
354
        $this->mailChimpApi
355
            ->shouldReceive('get')
356
            ->once()
357
            ->withArgs(["lists/123/members/{$subscriberHash}"]);
358
359
        $this->newsletter->getMember($email);
360
    }
361
362
    /** @test */
363
    public function it_can_get_the_member_from_a_specific_list()
@@ 363-380 (lines=18) @@
360
    }
361
362
    /** @test */
363
    public function it_can_get_the_member_from_a_specific_list()
364
    {
365
        $email = '[email protected]';
366
367
        $subscriberHash = 'abc123';
368
369
        $this->mailChimpApi->shouldReceive('subscriberHash')
370
            ->once()
371
            ->withArgs([$email])
372
            ->andReturn($subscriberHash);
373
374
        $this->mailChimpApi
375
            ->shouldReceive('get')
376
            ->once()
377
            ->withArgs(["lists/456/members/{$subscriberHash}"]);
378
379
        $this->newsletter->getMember($email, 'list2');
380
    }
381
382
    /** @test */
383
    public function is_can_create_a_campaign()