This commit is contained in:
Pig Fang 2019-06-04 22:16:05 +08:00
parent abe9562fdb
commit 7c4e567cb5

View File

@ -41,12 +41,12 @@ class AdminControllerTest extends BrowserKitTestCase
->seeJsonStructure(['errors' => ['color_scheme']]);
// Change color
$this->get('/admin/customize?action=color&color_scheme=purple')
$this->get('/admin/customize?action=color&color_scheme=skin-purple')
->seeJson([
'code' => 0,
'message' => trans('admin.customize.change-color.success'),
]);
$this->assertEquals('purple', option('color_scheme'));
$this->assertEquals('skin-purple', option('color_scheme'));
$this->visit('/admin/customize')
->type('url', 'home_pic_url')