Code Duplication    Length = 13-13 lines in 2 locations

tests/Http/Controllers/ValidateControllerTest.php 2 locations

@@ 835-847 (lines=13) @@
832
        $this->assertEquals('authSuccessResponse called', $method->invokeArgs($controller, [$request, false, false]));
833
    }
834
835
    public function testLockTicket()
836
    {
837
        $locker = Mockery::mock(TicketLocker::class)
838
            ->shouldReceive('acquireLock')
839
            ->andReturn('acquireLock called')
840
            ->once()
841
            ->getMock();
842
        app()->instance(TicketLocker::class, $locker);
843
        $controller = $this->initController()
844
            ->makePartial();
845
        $method     = self::getNonPublicMethod($controller, 'lockTicket');
846
        $this->assertEquals('acquireLock called', $method->invokeArgs($controller, ['str', 30]));
847
    }
848
849
    public function testUnlockTicket()
850
    {
@@ 849-861 (lines=13) @@
846
        $this->assertEquals('acquireLock called', $method->invokeArgs($controller, ['str', 30]));
847
    }
848
849
    public function testUnlockTicket()
850
    {
851
        $locker = Mockery::mock(TicketLocker::class)
852
            ->shouldReceive('releaseLock')
853
            ->andReturn('releaseLock called')
854
            ->once()
855
            ->getMock();
856
        app()->instance(TicketLocker::class, $locker);
857
        $controller = $this->initController()
858
            ->makePartial();
859
        $method     = self::getNonPublicMethod($controller, 'unlockTicket');
860
        $this->assertEquals('releaseLock called', $method->invokeArgs($controller, ['str', 30]));
861
    }
862
863
    public function testAuthSuccessResponse()
864
    {