| @@ 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. |
|
| @@ 1129-1144 (lines=16) @@ | ||
| 1126 | * |
|
| 1127 | * @return array |
|
| 1128 | */ |
|
| 1129 | public function partner_code_provider() { |
|
| 1130 | return array( |
|
| 1131 | 'subsidiary_code' => |
|
| 1132 | array( |
|
| 1133 | Partner::SUBSIDIARY_CODE, // Code type. |
|
| 1134 | 'jetpack_partner_subsidiary_id', // filter/option key. |
|
| 1135 | 'subsidiaryId', // Query string parameter. |
|
| 1136 | ), |
|
| 1137 | 'affiliate_code' => |
|
| 1138 | array( |
|
| 1139 | Partner::AFFILIATE_CODE, |
|
| 1140 | 'jetpack_affiliate_code', |
|
| 1141 | 'aff', |
|
| 1142 | ), |
|
| 1143 | ); |
|
| 1144 | } |
|
| 1145 | ||
| 1146 | /** |
|
| 1147 | * Tests login URL only adds redirect param when redirect param is in original request. |
|