GcBackend\Controller\IndexControllerTest::testSaveDashboardActionWithoutWidgets PHP Метод

testSaveDashboardActionWithoutWidgets() публичный Метод

Test
public testSaveDashboardActionWithoutWidgets ( ) : void
Результат void
    public function testSaveDashboardActionWithoutWidgets()
    {
        Registry::get('Application')->getServiceManager()->get('CoreConfig')->setValue('dashboard_widgets', '');
        $this->dispatch('/admin/dashboard/save', 'POST', array('sortable1' => 'fast-links,blog', 'sortable2' => 'stats'));
        $this->assertResponseStatusCode(200);
        $this->assertModuleName('GcBackend');
        $this->assertControllerName('AdminController');
        $this->assertControllerClass('IndexController');
        $this->assertMatchedRouteName('admin/dashboard-save');
    }