feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
This commit is contained in:
67
modules/system/tests/classes/PluginBaseTest.php
Normal file
67
modules/system/tests/classes/PluginBaseTest.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
namespace System\Tests\Classes;
|
||||
|
||||
use System\Tests\Bootstrap\PluginManagerTestCase;
|
||||
|
||||
class PluginBaseTest extends PluginManagerTestCase
|
||||
{
|
||||
//
|
||||
// Tests
|
||||
//
|
||||
|
||||
public function testGetPluginVersions()
|
||||
{
|
||||
$expectedVersions = [
|
||||
'1.0.1' => [
|
||||
'Added some upgrade file and some "seeding"',
|
||||
'some_seeding_file.php' //does not exist
|
||||
],
|
||||
'1.0.2' => [
|
||||
'Added some stuff',
|
||||
],
|
||||
'1.0.3' => [
|
||||
'Bug fix update that uses no scripts'
|
||||
],
|
||||
'1.0.4' => [
|
||||
'Another fix'
|
||||
],
|
||||
'1.0.5' => [
|
||||
'Create blog settings table',
|
||||
'Another update message',
|
||||
'Yet one more update message',
|
||||
],
|
||||
'1.1.0' => [
|
||||
'!!! Drop support for blog settings',
|
||||
],
|
||||
'1.2.0' => [
|
||||
'!!! Security update - see: https://wintercms.com',
|
||||
],
|
||||
'1.3.0' => [
|
||||
'!!! We\'ve refactored major parts of this plugin. Please see the website for more information.',
|
||||
],
|
||||
'1.3.1' => [
|
||||
'Minor bug fix Please see changelog',
|
||||
],
|
||||
'1.3.2' => [
|
||||
'Added support for Translate plugin. Added some new languages.',
|
||||
],
|
||||
'1.4.1' => [
|
||||
'!!! Major update here.',
|
||||
],
|
||||
'1.5.0' => [
|
||||
'!!! Another major update to fix several issues',
|
||||
],
|
||||
'1.5.1' => [
|
||||
'Improved signature with the Test::method()',
|
||||
'Translation updates.',
|
||||
],
|
||||
];
|
||||
|
||||
$plugin = $this->manager->findByIdentifier('Winter.Tester');
|
||||
$versions = $plugin->getPluginVersions(false);
|
||||
|
||||
$this->assertNotNull($versions);
|
||||
$this->assertEquals($expectedVersions, $versions);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user