| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function testBuildUri(): void |
||
| 27 | { |
||
| 28 | $settings = [ |
||
| 29 | 'tweet' => 'tweeeeeeeet', |
||
| 30 | 'foo' => 'bar', |
||
| 31 | 'align' => 'bar', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | $expected = sprintf('%s?%s', TwitterEmbedTweetBlockService::TWITTER_OEMBED_URI, 'align=bar&url=tweeeeeeeet'); |
||
| 35 | |||
| 36 | $blockService = new TwitterEmbedTweetBSTest($this->createMock(Environment::class)); |
||
| 37 | $this->assertSame($expected, $blockService->publicBuildUri(true, $settings)); |
||
| 38 | |||
| 39 | $expected = sprintf('%s?%s', TwitterEmbedTweetBlockService::TWITTER_OEMBED_URI, 'align=bar&id=tweeeeeeeet'); |
||
| 40 | $this->assertSame($expected, $blockService->publicBuildUri(false, $settings)); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |