akaunting 3.0 (the last dance)

This commit is contained in:
Burak Civan
2022-06-01 10:15:55 +03:00
parent cead09f6d4
commit d9c0764572
3812 changed files with 126831 additions and 102949 deletions

View File

@ -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()