mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:20:12 +01:00
Removed ?> from ru lang file
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
c92ad1bf7e
commit
400f9f2ca4
@ -1,35 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
|
||||||
|
|
||||||
define('DIR_SYSTEM', dirname(dirname(__FILE__)) . '/webui/system/');
|
|
||||||
|
|
||||||
include_once("webui/system/model.php");
|
|
||||||
include_once("webui/model/search/message.php");
|
|
||||||
|
|
||||||
final class SearchMessageTest extends TestCase {
|
|
||||||
|
|
||||||
public function providerTestNiceSizeValues() {
|
|
||||||
return [
|
|
||||||
['0', '1k'],
|
|
||||||
['1000', '1k'],
|
|
||||||
['2000', '2k'],
|
|
||||||
['4300', '4k'],
|
|
||||||
['4700', '5k'],
|
|
||||||
['3000000', '3.0M'],
|
|
||||||
['4240000', '4.2M'],
|
|
||||||
['6810000', '6.8M']
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @dataProvider providerTestNiceSizeValues
|
|
||||||
*/
|
|
||||||
|
|
||||||
public function test_nice_size($input, $expected_result) {
|
|
||||||
$result = ModelSearchMessage::NiceSize($input);
|
|
||||||
$this->assertEquals($result, $expected_result);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -484,5 +484,3 @@ $_['text_legal_hold'] = "Legal hold";
|
|||||||
$_['text_compliance_warning'] = 'The delete feature is enabled, therefore the archive is NOT compliant!';
|
$_['text_compliance_warning'] = 'The delete feature is enabled, therefore the archive is NOT compliant!';
|
||||||
$_['text_folder_rules'] = "Folder rules";
|
$_['text_folder_rules'] = "Folder rules";
|
||||||
$_['text_private'] = "Private";
|
$_['text_private'] = "Private";
|
||||||
|
|
||||||
?>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user