* @author Graham Campbell */ class CreateComponentGroupCommandTest extends AbstractTestCase { use CommandTrait; protected function getObjectAndParams() { $params = [ 'name' => 'Test', 'order' => 0, 'collapsed' => 1, 'visible' => ComponentGroup::VISIBLE_AUTHENTICATED, ]; $object = new CreateComponentGroupCommand( $params['name'], $params['order'], $params['collapsed'], $params['visible'] ); return compact('params', 'object'); } protected function objectHasRules() { return true; } protected function getHandlerClass() { return CreateComponentGroupCommandHandler::class; } }