summaryrefslogtreecommitdiff
path: root/plugins/server/command_test.go
blob: 24051fbadc95431a2a89797547cc298412ab303c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package server

import (
	"strings"
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestServerCommandChecker(t *testing.T) {
	s := &Plugin{}
	cmd1 := "php ../../tests/client.php"
	assert.NoError(t, s.scanCommand(strings.Split(cmd1, " ")))
}