mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixes WidgetManagerTest
This commit is contained in:
parent
31d4c3b81e
commit
c7f54ef010
7
tests/fixtures/plugins/october/tester/formwidgets/Preview.php
vendored
Normal file
7
tests/fixtures/plugins/october/tester/formwidgets/Preview.php
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<?php namespace October\Tester\FormWidgets;
|
||||
|
||||
use Backend\Classes\FormWidgetBase;
|
||||
|
||||
class Preview extends FormWidgetBase
|
||||
{
|
||||
}
|
7
tests/fixtures/plugins/testvendor/test/formwidgets/Sample.php
vendored
Normal file
7
tests/fixtures/plugins/testvendor/test/formwidgets/Sample.php
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
<?php namespace TestVendor\Test\FormWidgets;
|
||||
|
||||
use Backend\Classes\FormWidgetBase;
|
||||
|
||||
class Sample extends FormWidgetBase
|
||||
{
|
||||
}
|
@ -10,11 +10,7 @@ class WidgetManagerTest extends TestCase
|
||||
$manager = WidgetManager::instance();
|
||||
$widgets = $manager->listFormWidgets();
|
||||
|
||||
$this->assertArrayHasKey('Backend\FormWidgets\CodeEditor', $widgets);
|
||||
$this->assertArrayHasKey('Backend\FormWidgets\RichEditor', $widgets);
|
||||
$this->assertArrayHasKey('Backend\FormWidgets\FileUpload', $widgets);
|
||||
$this->assertArrayHasKey('Backend\FormWidgets\Relation', $widgets);
|
||||
$this->assertArrayHasKey('Backend\FormWidgets\DatePicker', $widgets);
|
||||
$this->assertArrayHasKey('Cms\FormWidgets\Components', $widgets);
|
||||
$this->assertArrayHasKey('TestVendor\Test\FormWidgets\Sample', $widgets);
|
||||
$this->assertArrayHasKey('October\Tester\FormWidgets\Preview', $widgets);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user