Add tests for the localization files
This commit is contained in:
parent
258665932d
commit
b3c882e037
16 changed files with 304 additions and 0 deletions
19
plugins/calendar/tests/LocalizationTest.php
Normal file
19
plugins/calendar/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_2fa/tests/LocalizationTest.php
Normal file
19
plugins/kolab_2fa/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_activesync/tests/LocalizationTest.php
Normal file
19
plugins/kolab_activesync/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_addressbook/tests/LocalizationTest.php
Normal file
19
plugins/kolab_addressbook/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_auth/tests/LocalizationTest.php
Normal file
19
plugins/kolab_auth/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_chat/tests/LocalizationTest.php
Normal file
19
plugins/kolab_chat/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_delegation/tests/LocalizationTest.php
Normal file
19
plugins/kolab_delegation/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_files/tests/LocalizationTest.php
Normal file
19
plugins/kolab_files/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_folders/tests/LocalizationTest.php
Normal file
19
plugins/kolab_folders/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_notes/tests/LocalizationTest.php
Normal file
19
plugins/kolab_notes/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_sso/tests/LocalizationTest.php
Normal file
19
plugins/kolab_sso/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/kolab_tags/tests/LocalizationTest.php
Normal file
19
plugins/kolab_tags/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/libcalendaring/tests/LocalizationTest.php
Normal file
19
plugins/libcalendaring/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/libkolab/tests/LocalizationTest.php
Normal file
19
plugins/libkolab/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/tasklist/tests/LocalizationTest.php
Normal file
19
plugins/tasklist/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
19
plugins/wap_client/tests/LocalizationTest.php
Normal file
19
plugins/wap_client/tests/LocalizationTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class LocalizationTest extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* Test all localization files for possible errors
|
||||
*/
|
||||
function test_localization()
|
||||
{
|
||||
// Any error/warning will fail the
|
||||
foreach (glob(__DIR__ . '/../localization/*.inc') as $file) {
|
||||
$labels = $messages = [];
|
||||
|
||||
include $file;
|
||||
|
||||
$this->assertTrue(!empty($labels));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue