Fixes WidgetManagerTest

This commit is contained in:
Samuel Georges 2015-07-25 11:05:58 +10:00
parent 31d4c3b81e
commit c7f54ef010
3 changed files with 16 additions and 6 deletions

View File

@ -0,0 +1,7 @@
<?php namespace October\Tester\FormWidgets;
use Backend\Classes\FormWidgetBase;
class Preview extends FormWidgetBase
{
}

View File

@ -0,0 +1,7 @@
<?php namespace TestVendor\Test\FormWidgets;
use Backend\Classes\FormWidgetBase;
class Sample extends FormWidgetBase
{
}

View File

@ -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);
}
}