/** * top menu should display 'Email reports' if there are no SMS reports and at least one email report * whatever the status of the mobile provider account * * @group Plugins */ public function testGetTopMenuTranslationKeyNoSMSReportAccountOK() { // set mobile provider account self::setSuperUser(); APIMobileMessaging::getInstance()->setSMSAPICredential('StubbedProvider', ''); self::addReport(self::getMonthlyEmailReportData($this->idSite)); $pdfReportPlugin = new Menu(); $this->assertEquals(Menu::PDF_REPORTS_TOP_MENU_TRANSLATION_KEY, $pdfReportPlugin->getTopMenuTranslationKey()); }