@@ 128-153 (lines=26) @@ | ||
125 | /** |
|
126 | * @return array |
|
127 | */ |
|
128 | public function getNameDQLDataProvider() |
|
129 | { |
|
130 | return [ |
|
131 | 'test unsupported class Name' => [ |
|
132 | 'format' => '', |
|
133 | 'locale' => null, |
|
134 | 'className' => '', |
|
135 | 'alias' => '', |
|
136 | 'expected' => false |
|
137 | ], |
|
138 | 'test unsupported format' => [ |
|
139 | 'format' => '', |
|
140 | 'locale' => null, |
|
141 | 'className' => ContactEntityNameProvider::CLASS_NAME, |
|
142 | 'alias' => '', |
|
143 | 'expected' => false |
|
144 | ], |
|
145 | 'correct data' => [ |
|
146 | 'format' => EntityNameProviderInterface::FULL, |
|
147 | 'locale' => null, |
|
148 | 'className' => ContactEntityNameProvider::CLASS_NAME, |
|
149 | 'alias' => '', |
|
150 | 'expected' => 'Contact' |
|
151 | ] |
|
152 | ]; |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * @return Contact |
@@ 95-120 (lines=26) @@ | ||
92 | /** |
|
93 | * @return array |
|
94 | */ |
|
95 | public function getNameDQLDataProvider() |
|
96 | { |
|
97 | return [ |
|
98 | 'test unsupported class Name' => [ |
|
99 | 'format' => '', |
|
100 | 'locale' => null, |
|
101 | 'className' => '', |
|
102 | 'alias' => '', |
|
103 | 'expected' => false |
|
104 | ], |
|
105 | 'test unsupported format' => [ |
|
106 | 'format' => '', |
|
107 | 'locale' => null, |
|
108 | 'className' => SalesFunnelEntityNameProvider::CLASS_NAME, |
|
109 | 'alias' => '', |
|
110 | 'expected' => false |
|
111 | ], |
|
112 | 'correct data' => [ |
|
113 | 'format' => EntityNameProviderInterface::FULL, |
|
114 | 'locale' => null, |
|
115 | 'className' => SalesFunnelEntityNameProvider::CLASS_NAME, |
|
116 | 'alias' => '', |
|
117 | 'expected' => 'CONCAT(\'Sales Funnel \', .id)' |
|
118 | ] |
|
119 | ]; |
|
120 | } |
|
121 | ||
122 | /** |
|
123 | * @return SalesFunnel |