| @@ 27-36 (lines=10) @@ | ||
| 24 | ); |
|
| 25 | } |
|
| 26 | ||
| 27 | public function testGenerateBasic() |
|
| 28 | { |
|
| 29 | $script = $this->initScript(); |
|
| 30 | $script->getGoogleAnalytics()->setTrackingId('UA-9999999-9'); |
|
| 31 | ||
| 32 | self::assertSame( |
|
| 33 | file_get_contents(TEST_FIXTURE_PATH . '\codes\analytics\basic.html'), |
|
| 34 | $script->render() |
|
| 35 | ); |
|
| 36 | } |
|
| 37 | ||
| 38 | public function testGenerateBasicTwoTrackers() |
|
| 39 | { |
|
| @@ 38-48 (lines=11) @@ | ||
| 35 | ); |
|
| 36 | } |
|
| 37 | ||
| 38 | public function testGenerateBasicTwoTrackers() |
|
| 39 | { |
|
| 40 | $script = $this->initScript(); |
|
| 41 | $script->getGoogleAnalytics()->setTrackingId('UA-9999999-9'); |
|
| 42 | $script->getGoogleAnalytics()->setTrackingId('UA-9999999-8', 'b'); |
|
| 43 | ||
| 44 | self::assertSame( |
|
| 45 | file_get_contents(TEST_FIXTURE_PATH . '\codes\analytics\basicTwoTrackers.html'), |
|
| 46 | $script->render() |
|
| 47 | ); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function testGenerateWithTransaction() |
|
| 51 | { |
|