Code Duplication    Length = 9-10 lines in 2 locations

eZ/Bundle/EzPublishRestBundle/Tests/EventListener/CsrfListenerTest.php 2 locations

@@ 76-84 (lines=9) @@
73
        $listener->onKernelRequest($this->getEventMock());
74
    }
75
76
    public function testCsrfDisabled()
77
    {
78
        $this->requestMethod = false;
79
        $this->sessionMock = false;
80
        $this->route = false;
81
        $this->csrfTokenHeaderValue = null;
82
83
        $this->getEventListener(false)->onKernelRequest($this->getEventMock());
84
    }
85
86
    public function testNoSessionStarted()
87
    {
@@ 86-95 (lines=10) @@
83
        $this->getEventListener(false)->onKernelRequest($this->getEventMock());
84
    }
85
86
    public function testNoSessionStarted()
87
    {
88
        $this->sessionIsStarted = false;
89
90
        $this->requestMethod = false;
91
        $this->route = false;
92
        $this->csrfTokenHeaderValue = null;
93
94
        $this->getEventListener()->onKernelRequest($this->getEventMock());
95
    }
96
97
    /**
98
     * Tests that method CSRF check don't apply to are indeed ignored.