1 | <?php |
||
9 | class BaseReportTest extends PHPUnit_Framework_TestCase |
||
10 | { |
||
11 | public function testSetFormat() |
||
12 | { |
||
13 | $report = new BaseReport(); |
||
14 | $this->assertNull($report->getRequest()->Format); |
||
15 | /* @var string (See BingAds SDK documentation) */ |
||
16 | $report->setFormat(ReportFormat::Csv); |
||
17 | $this->assertEquals(ReportFormat::Csv, $report->getRequest()->Format); |
||
18 | } |
||
19 | |||
20 | public function testSetReturnOnlyCompleteData() |
||
21 | { |
||
22 | $report = new BaseReport(); |
||
23 | $this->assertNull($report->getRequest()->ReturnOnlyCompleteData); |
||
24 | |||
25 | $report->setReturnOnlyCompleteData(true); |
||
26 | $this->assertTrue($report->getRequest()->ReturnOnlyCompleteData); |
||
27 | } |
||
28 | |||
29 | public function testSetReportLanguage() |
||
30 | { |
||
31 | $report = new BaseReport(); |
||
32 | $this->assertNull($report->getRequest()->Language); |
||
33 | |||
34 | $report->setReportLanguage(ReportLanguage::English); |
||
35 | $this->assertEquals(ReportLanguage::English, $report->getRequest()->Language); |
||
36 | } |
||
37 | } |
||
38 |