Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(HR test) use default locale explicitly
Browse files Browse the repository at this point in the history
Change-Id: Ie48f65ebe66f2ebda4fd620c866da80d149934b8
Reviewed-on: http://gerrit.tine20.com/customers/16237
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
Reviewed-by: Paul Mehrer <p.mehrer@metaways.de>
  • Loading branch information
paulmhh committed Apr 5, 2020
1 parent 39055ee commit bc46441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tine20/HumanResources/TestCase.php
Expand Up @@ -59,7 +59,7 @@ protected function setUp()
protected function _getWorkingTimeScheme40()
{
if (null === $this->_40hoursWorkingTimeScheme) {
$translate = Tinebase_Translation::getTranslation('HumanResources');
$translate = Tinebase_Translation::getTranslation('HumanResources', new Zend_Locale(Tinebase_Config::getInstance()->{Tinebase_Config::DEFAULT_LOCALE}));
$this->_40hoursWorkingTimeScheme = HumanResources_Controller_WorkingTimeScheme::getInstance()->search(
new HumanResources_Model_WorkingTimeSchemeFilter([
['field' => 'title', 'operator' => 'equals', 'value' => $translate->_('Full-time 40 hours')]
Expand Down

0 comments on commit bc46441

Please sign in to comment.