public function testTranslate() { $this->assertFalse($this->activityExtension->translate('files_sharing', '', [], false, false, 'en'), 'Asserting that no translations are set for files_sharing'); // Test english $this->assertNotFalse($this->activityExtension->translate('files', 'deleted_self', ['file'], false, false, 'en'), 'Asserting that translations are set for files.deleted_self'); $this->assertStringStartsWith('You deleted ', $this->activityExtension->translate('files', 'deleted_self', ['file'], false, false, 'en')); // Test translation $this->assertNotFalse($this->activityExtension->translate('files', 'deleted_self', ['file'], false, false, 'de'), 'Asserting that translations are set for files.deleted_self'); $this->assertStringStartsWith('translate(You deleted ', $this->activityExtension->translate('files', 'deleted_self', ['file'], false, false, 'de')); }
public function testTranslate() { $this->assertFalse($this->activityExtension->translate('files_sharing', '', [], false, false, 'en'), 'Asserting that no translations are set for files_sharing'); }