1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Test fixes.

This commit is contained in:
Cameron 2022-04-06 08:44:45 -07:00
parent 196f952db8
commit 9ed3007b71
2 changed files with 13 additions and 1 deletions

View File

@ -127,9 +127,11 @@
{
$actual = $this->dateObj->buildDateLocale();
$september = (stripos(PHP_OS, 'WIN') === 0) ? 'Sept' : 'Sep';
$this->assertStringContainsString('$.fn.datetimepicker.dates["en"]', $actual);
$this->assertStringContainsString('days: ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],', $actual);
$this->assertStringContainsString('monthsShort: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],', $actual);
$this->assertStringContainsString('monthsShort: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","'.$september.'","Oct","Nov","Dec"],', $actual);
}
public function testToTime()

View File

@ -140,6 +140,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => 'style.css',
'info' => 'Default',
'nonadmin' => true,
'default' => false,
'exclude' => '',
'description' => '',
'thumbnail' => '',
@ -148,6 +149,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => '*',
'info' => '*',
'nonadmin' => true,
'default' => false,
'exclude' => '',
'description' => '',
'thumbnail' => '',
@ -164,6 +166,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => 'css/modern-light.css',
'info' => 'Modern Light',
'nonadmin' => false,
'default' => false,
'exclude' => 'bootstrap',
'description' => 'A high-contrast light skin',
'thumbnail' => 'images/admin_modern-light.webp',
@ -173,6 +176,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => 'css/modern-dark.css',
'info' => 'Modern Dark',
'nonadmin' => false,
'default' => false,
'exclude' => 'bootstrap',
'description' => 'A high-contrast dark skin',
'thumbnail' => 'images/admin_modern-dark.webp',
@ -182,6 +186,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => 'css/bootstrap-dark.min.css',
'info' => 'Legacy Dark Admin',
'nonadmin' => false,
'default' => false,
'exclude' => 'bootstrap',
'description' => 'A dark admin area skin',
'thumbnail' => 'images/admin_bootstrap-dark.webp',
@ -191,6 +196,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => 'css/kadmin.css',
'info' => 'K-Admin Inspired',
'nonadmin' => false,
'default' => false,
'exclude' => '',
'description' => 'A light admin area skin',
'thumbnail' => 'images/admin_kadmin.webp',
@ -200,6 +206,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => 'css/corporate.css',
'info' => 'Corporate',
'nonadmin' => false,
'default' => false,
'exclude' => 'bootstrap',
'description' => '',
'thumbnail' => 'images/admin_corporate.webp',
@ -209,6 +216,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => 'https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/flatly/bootstrap.min.css',
'info' => 'Flatly',
'nonadmin' => false,
'default' => false,
'exclude' => 'bootstrap',
'description' => '',
'thumbnail' => 'images/admin_flatly.webp',
@ -218,6 +226,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => 'https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/sandstone/bootstrap.min.css',
'info' => 'Sandstone',
'nonadmin' => false,
'default' => false,
'exclude' => 'bootstrap',
'description' => '',
'thumbnail' => 'images/admin_sandstone.webp',
@ -227,6 +236,7 @@ class e_themeTest extends \Codeception\Test\Unit
'name' => 'https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/superhero/bootstrap.min.css',
'info' => 'Superhero',
'nonadmin' => false,
'default' => false,
'exclude' => 'bootstrap',
'description' => '',
'thumbnail' => 'images/admin_superhero.webp',