/** * Tests to make sure the email subject line reflects the name property * where present. */ public function testEmailSubject() { $q = new GaDataQuery(); $q->setStartDate('2013-07-28'); $q->setEndDate('2013-11-03'); $profile = new ProfileSummary(); $profile->setID('123'); $profile->setName('Foo'); $q->setProfile($profile); $this->assertEquals('Google Analytics report for profile "Foo" for 2013-07-28 through 2013-11-03', $q->getEmailSubject()); $q->setName('Bar'); $this->assertEquals('Google Analytics report "Bar" for 2013-07-28 through 2013-11-03', $q->getEmailSubject()); }