Code Duplication    Length = 10-10 lines in 4 locations

src/Bundle/ResourceBundle/Tests/Rest/View/EventSubscriber/FormViewSubscriberTest.php 1 location

@@ 61-70 (lines=10) @@
58
        $this->assertInstanceOf(EventSubscriberInterface::class, $this->subscriber);
59
    }
60
61
    public function testSubscribedEvents()
62
    {
63
        $this->assertSame(
64
            [RestEvents::VIEW => [
65
                ['onApi', -1000],
66
                ['onView', -2000],
67
            ]],
68
            $this->subscriber->getSubscribedEvents()
69
        );
70
    }
71
72
    public function testApiWithoutApi()
73
    {

src/Bundle/ResourceBundle/Tests/Rest/View/EventSubscriber/PagerfantaViewSubscriberTest.php 1 location

@@ 75-84 (lines=10) @@
72
        $this->assertInstanceOf(EventSubscriberInterface::class, $this->subscriber);
73
    }
74
75
    public function testSubscribedEvents()
76
    {
77
        $this->assertSame(
78
            [RestEvents::VIEW => [
79
                ['onApi', -3000],
80
                ['onView', -3000],
81
            ]],
82
            $this->subscriber->getSubscribedEvents()
83
        );
84
    }
85
86
    public function testApiWithoutApi()
87
    {

src/Bundle/ResourceBundle/Tests/Rest/View/EventSubscriber/ResourceViewSubscriberTest.php 1 location

@@ 53-62 (lines=10) @@
50
        $this->assertInstanceOf(EventSubscriberInterface::class, $this->subscriber);
51
    }
52
53
    public function testSubscribedEvents()
54
    {
55
        $this->assertSame(
56
            [RestEvents::VIEW => [
57
                ['onApi', -4000],
58
                ['onView', -4000],
59
            ]],
60
            $this->subscriber->getSubscribedEvents()
61
        );
62
    }
63
64
    public function testApiWithoutApi()
65
    {

src/Bundle/ResourceBundle/Tests/Rest/View/EventSubscriber/GridViewSubscriberTest.php 1 location

@@ 70-79 (lines=10) @@
67
        $this->assertInstanceOf(EventSubscriberInterface::class, $this->subscriber);
68
    }
69
70
    public function testSubscribedEvents()
71
    {
72
        $this->assertSame(
73
            [RestEvents::VIEW => [
74
                ['onApi', -2000],
75
                ['onView', -1000],
76
            ]],
77
            $this->subscriber->getSubscribedEvents()
78
        );
79
    }
80
81
    public function testApiWithoutApi()
82
    {