| @@ 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. |
|
| @@ 1111-1126 (lines=16) @@ | ||
| 1108 | * |
|
| 1109 | * @return array |
|
| 1110 | */ |
|
| 1111 | public function partner_code_provider() { |
|
| 1112 | return array( |
|
| 1113 | 'subsidiary_code' => |
|
| 1114 | array( |
|
| 1115 | Partner::SUBSIDIARY_CODE, // Code type. |
|
| 1116 | 'jetpack_partner_subsidiary_id', // filter/option key. |
|
| 1117 | 'subsidiaryId', // Query string parameter. |
|
| 1118 | ), |
|
| 1119 | 'affiliate_code' => |
|
| 1120 | array( |
|
| 1121 | Partner::AFFILIATE_CODE, |
|
| 1122 | 'jetpack_affiliate_code', |
|
| 1123 | 'aff', |
|
| 1124 | ), |
|
| 1125 | ); |
|
| 1126 | } |
|
| 1127 | ||
| 1128 | /** |
|
| 1129 | * Tests login URL only adds redirect param when redirect param is in original request. |
|