mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +02:00
Type checks involving e_formTest
- MOD: e107::getTemplate() now accepts blank strings for the plugin name to mean that a core template should be loaded - FIX: e_form::progressBar() now supports input values that already have % at the end - FIX: Null check for $options['list'] in e_form::progressBar() - NEW: Test rounding in e_formTest::testProgressBar()
This commit is contained in:
@@ -366,6 +366,8 @@ class e_formTest extends \Codeception\Test\Unit
|
||||
1 => array('value' => '4/5', 'expected' => 'width: 80%'),
|
||||
2 => array('value' => '150/300', 'expected' => 'width: 50%'),
|
||||
3 => array('value' => '30%', 'expected' => 'width: 30%'),
|
||||
4 => array('value' => '30.4%', 'expected' => 'width: 30%'),
|
||||
5 => array('value' => '30.5%', 'expected' => 'width: 31%'),
|
||||
);
|
||||
|
||||
foreach($tests as $var)
|
||||
|
Reference in New Issue
Block a user