forked from Luccifer/FB-Source-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdsOnCallPhotoEdit.hack.txt
42 lines (39 loc) · 984 Bytes
/
AdsOnCallPhotoEdit.hack.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?hh
// Copyright 2004-present Facebook. All Rights Reserved.
/**
* @emails oncall+ads_manager_reporting
*/
class EditImagesActivityLoaderTest
extends ActivityLoaderTestBase {
public function beforeEach(): void {
Classes::get('AdproAccountImageUrlUtils')
->mockYield('genImageURLsFromHashes', 'http://yeah.woo');
$this->eventType = 'edit_images';
$this->extraData = array(
'txn_params' => array(
'account_id' => 57665093,
'specs' => array(
'hash' => 'eb0198bf8929ff3434583248c05c220f',
'status' => 1,
),
)
);
parent::beforeEach();
}
public async function testImageEdit(): Awaitable<void> {
$log = await EditImagesActivityLoader::gen(
$this->viewerContext,
$this->extraData,
$this->headers,
);
expect(
$log->getExtraData(),
)->toEqual(
Map {
ActivityExtraDataFields::IMAGE_URL => Vector {
'',
},
},
);
}
}