akaunting 3.0 (the last dance)
This commit is contained in:
@ -4,8 +4,9 @@ namespace Tests\Feature\Common;
|
||||
|
||||
use App\Models\Common\Widget;
|
||||
use App\Models\Common\Dashboard;
|
||||
use Tests\Feature\FeatureTestCase;
|
||||
use App\Jobs\Common\CreateDashboard;
|
||||
use App\Utilities\Widgets;
|
||||
use Tests\Feature\FeatureTestCase;
|
||||
|
||||
class DashboardsTest extends FeatureTestCase
|
||||
{
|
||||
@ -94,13 +95,12 @@ class DashboardsTest extends FeatureTestCase
|
||||
|
||||
public function testItShouldSeeWidgetCreate()
|
||||
{
|
||||
$classes = Widget::factory()->classes;
|
||||
$class = $classes[rand(0, 9)];
|
||||
$class = Widgets::$core_widgets[array_rand(Widgets::$core_widgets)];
|
||||
|
||||
$this->loginAs()
|
||||
->get(route('widgets.index'))
|
||||
->assertOk()
|
||||
->assertSeeText((new $class())->getDefaultName());
|
||||
->assertSeeText((new $class())->getDefaultName(), false);
|
||||
}
|
||||
|
||||
public function testItShouldSeeWidgetEdit()
|
||||
|
Reference in New Issue
Block a user