Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 44 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
ReferencesTipTree | |
0.00% |
0 / 44 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
getTree | |
0.00% |
0 / 43 |
|
0.00% |
0 / 1 |
2 | |||
getTaskTypeId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace GrowthExperiments\HelpPanel\Tips; |
4 | |
5 | class ReferencesTipTree extends TipTree { |
6 | |
7 | /** @inheritDoc */ |
8 | public function getTree(): array { |
9 | $steps = [ |
10 | 'value' => [ 'main' => [], 'example' => [], 'text' => [], ], |
11 | 'calm' => [ 'main' => [] ], |
12 | 'rules1' => [ 'main' => [] ], |
13 | 'step1' => [ 'main' => [ $this->getEditMessageTipConfigData() ] ], |
14 | 'step2' => [ |
15 | 'main' => [ |
16 | [ |
17 | 'type' => self::TIP_DATA_TYPE_OOUI_ICON, |
18 | 'data' => [ 'icon' => 'browser' ] |
19 | ], |
20 | [ |
21 | 'type' => self::TIP_DATA_TYPE_OOUI_ICON, |
22 | 'data' => [ 'icon' => 'book' ] |
23 | ], |
24 | [ |
25 | 'type' => self::TIP_DATA_TYPE_OOUI_ICON, |
26 | 'data' => [ 'icon' => 'journal' ] |
27 | ], |
28 | [ |
29 | 'type' => self::TIP_DATA_TYPE_OOUI_ICON, |
30 | 'data' => [ 'icon' => 'reference' ] |
31 | ] |
32 | ] |
33 | ], |
34 | 'step3' => [ |
35 | 'main' => [ |
36 | [ |
37 | 'type' => self::TIP_DATA_TYPE_PLAIN_MESSAGE, |
38 | 'data' => 'cite-ve-toolbar-group-label' |
39 | ], |
40 | [ |
41 | 'type' => self::TIP_DATA_TYPE_OOUI_ICON, |
42 | 'data' => [ |
43 | 'icon' => 'quotes', |
44 | 'labelKey' => 'cite-ve-toolbar-group-label' |
45 | ] |
46 | ] |
47 | ] |
48 | ], |
49 | 'publish' => [ 'main' => [ $this->getPublishMessageTipConfigData() ] ] |
50 | ]; |
51 | return $this->maybeAddLearnMoreLinkTipNode( $steps ); |
52 | } |
53 | |
54 | /** @inheritDoc */ |
55 | protected function getTaskTypeId(): string { |
56 | return 'references'; |
57 | } |
58 | |
59 | } |