Code Duplication    Length = 11-11 lines in 2 locations

tests/facades/ReservationsFacadeTest.php 1 location

@@ 14-24 (lines=11) @@
11
12
class ReservationsFacadeTest extends PluginTestCase
13
{
14
    public function setUp()
15
    {
16
        parent::setUp();
17
18
        $this->app->bind('vojtasvoboda.reservations.facade', ReservationsFacade::class);
19
20
        // registrate reservations validators
21
        Validator::resolver(function($translator, $data, $rules, $messages, $customAttributes) {
22
            return new ReservationsValidators($translator, $data, $rules, $messages, $customAttributes);
23
        });
24
    }
25
26
    /**
27
     * Returns tested class.

tests/models/ReservationTest.php 1 location

@@ 18-28 (lines=11) @@
15
{
16
    private $defaultStatus;
17
18
    public function setUp()
19
    {
20
        parent::setUp();
21
22
        $this->app->bind('vojtasvoboda.reservations.facade', ReservationsFacade::class);
23
24
        // registrate reservations validators
25
        Validator::resolver(function($translator, $data, $rules, $messages, $customAttributes) {
26
            return new ReservationsValidators($translator, $data, $rules, $messages, $customAttributes);
27
        });
28
    }
29
30
    /**
31
     * Get tested model.