[BUGFIX] Move forgotten getEnvironmentMode()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / AbstractRepository.php
index 5383840..d15fc3e 100644 (file)
@@ -290,6 +290,16 @@ abstract class AbstractRepository implements \TYPO3\CMS\Extbase\Persistence\Repo
                return $this->objectType;
        }
 
+       /**
+        * Function to return the current TYPO3_MODE.
+        * This function can be mocked in unit tests to be able to test frontend behaviour.
+        *
+        * @return string
+        */
+       protected function getEnvironmentMode() {
+               return TYPO3_MODE;
+       }
+
 }