10 $cb = $this->createMock(LSControlBuilder::class);
13 json_encode([
"label" =>
"",
"command" =>
"",
"parameter" => null,
"state" => null,
"childs" => []]),
20 $cb = $this->createMock(LSControlBuilder::class);
31 ->item(
'item3.2.1', 6)
37 "label" =>
"",
"command" =>
"",
"parameter" => null,
"state" => null,
"childs" => [
38 [
"label" =>
"node1",
"command" =>
"",
"parameter" => null,
"state" => null,
"childs" => [
39 [
"label" =>
"item1.1",
"command" =>
"",
"parameter" => 1,
"state" => null],
40 [
"label" =>
"item1.2",
"command" =>
"",
"parameter" => 2,
"state" => null]
42 [
"label" =>
"item2",
"command" =>
"",
"parameter" => 3,
"state" => null],
43 [
"label" =>
"node3",
"command" =>
"",
"parameter" => null,
"state" => null,
"childs" => [
44 [
"label" =>
"item3.1",
"command" =>
"",
"parameter" => 4,
"state" => null],
45 [
"label" =>
"node3.2",
"command" =>
"",
"parameter" => 5,
"state" => null,
"childs" => [
46 [
"label" =>
"item3.2.1",
"command" =>
"",
"parameter" => 6,
"state" => null]
51 json_encode($expected),
58 $cb = $this->createMock(LSControlBuilder::class);
61 $this->assertInstanceOf(ControlBuilder::class, $tb);