[BUGFIX] Rethrow Extbase scheduler task exceptions
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Scheduler / TaskTest.php
index 39dff66..12c7ab7 100644 (file)
@@ -36,9 +36,10 @@ class TaskTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @test
+        * @expectedException Exception
         * @author Alexander Schnitzler <alex.schnitzler@typovision.de>
         */
-       public function executeCallsLogExceptionOnCaughtException() {
+       public function executeCallsLogExceptionOnCaughtExceptionAndRethrowsException() {
                $this->taskExecutor->expects($this->once())->method('execute')->will($this->throwException(new \Exception()));
                $this->task->_set('taskExecutor', $this->taskExecutor);
                $this->task->expects($this->once())->method('logException');