Code Duplication    Length = 13-13 lines in 2 locations

tests/unit/Controllers/DefaultControllerHelperTest.php 2 locations

@@ 121-133 (lines=13) @@
118
    /**
119
     * @test
120
     */
121
    public function shouldHandleException()
122
    {
123
        /** @var Exception $exception */
124
        $exception = $this->createMock('Exception');
125
        $exception->method('__toString')->willReturn("some-string");
126
127
        $this->logger->expects($this->once())->method('log')->with(
128
            $this->equalTo('error'),
129
            $this->identicalTo('some-string')
130
        );
131
132
        $this->controllerHelper->handleException($exception);
133
    }
134
135
    /**
136
     * @test
@@ 138-150 (lines=13) @@
135
    /**
136
     * @test
137
     */
138
    public function shouldAddFlashMessage()
139
    {
140
        /** @var FlashBagInterface $flashBag */
141
        $flashBag = $this->createMock(FlashBagInterface::class);
142
        $flashBag->expects($this->once())->method('add')->with(
143
            $this->equalTo('some-type'),
144
            $this->equalTo("Lorem ipsum dolor sit amet!")
145
        );
146
147
        $this->session->method('getFlashBag')->willReturn($flashBag);
148
149
        $this->controllerHelper->addFlashMessage("Lorem ipsum dolor sit amet!", "some-type");
150
    }
151
152
    /**
153
     * @test