20declare(strict_types=1);
35use PHPUnit\Framework\Attributes\DataProvider;
43 use RealFieldsUiFactory;
49 'install' => [
'install',
'Install languages'],
50 'update' => [
'update',
'Update languages'],
51 'uninstall' => [
'uninstall',
'Uninstall languages'],
52 'remove local changes' => [
'remove',
'Remove local language changes'],
53 'add entry' => [
'add',
'Add a language entry'],
54 'detection' => [
'detection',
'Enable or disable language detection'],
55 'translation' => [
'translation',
'Enable or disable page translation'],
59 #[DataProvider('activityTitleProvider')]
62 $description = $this->
activity($activity)
63 ->getInputDescription($this->createRealFieldsUiFactory()->input()->field());
65 $this->assertInstanceOf(Section::class, $description);
66 $this->assertSame($title, $description->getLabel());
71 $language = $this->createMock(Language::class);
72 $language->method(
'txt')->willReturnArgument(0);
73 $rbac = $this->
rbacOf($this->createMock(\ilRbacSystem::class));
75 $setup_language = $this->createMock(\ilSetupLanguage::class);
76 $repository = $this->createMock(RepositoryProvider::class);
78 return match ($name) {
86 default =>
throw new \InvalidArgumentException($name),
Every legacy and repository access of the runtime language activities.
Class ilLanguageBaseTest.
rbacOf(\ilRbacSystem $system)
languageFolder(int $ref_id=0)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...