@@ 48-63 (lines=16) @@ | ||
45 | * |
|
46 | * @return array[] |
|
47 | */ |
|
48 | public function code_provider() { |
|
49 | return array( |
|
50 | 'subsidiary_code' => |
|
51 | array( |
|
52 | Partner::SUBSIDIARY_CODE, // Code type. |
|
53 | 'jetpack_partner_subsidiary_id', // filter/option key. |
|
54 | 'subsidiaryId', // Query string parameter. |
|
55 | ), |
|
56 | 'affiliate_code' => |
|
57 | array( |
|
58 | Partner::AFFILIATE_CODE, |
|
59 | 'jetpack_affiliate_code', |
|
60 | 'aff', |
|
61 | ), |
|
62 | ); |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * Tests that the partner code is empty by default. |
@@ 1202-1217 (lines=16) @@ | ||
1199 | * |
|
1200 | * @return array |
|
1201 | */ |
|
1202 | public function partner_code_provider() { |
|
1203 | return array( |
|
1204 | 'subsidiary_code' => |
|
1205 | array( |
|
1206 | Partner::SUBSIDIARY_CODE, // Code type. |
|
1207 | 'jetpack_partner_subsidiary_id', // filter/option key. |
|
1208 | 'subsidiaryId', // Query string parameter. |
|
1209 | ), |
|
1210 | 'affiliate_code' => |
|
1211 | array( |
|
1212 | Partner::AFFILIATE_CODE, |
|
1213 | 'jetpack_affiliate_code', |
|
1214 | 'aff', |
|
1215 | ), |
|
1216 | ); |
|
1217 | } |
|
1218 | ||
1219 | /** |
|
1220 | * Tests login URL only adds redirect param when redirect param is in original request. |