| 1 | <?php |
||
| 10 | class NetgenOpenGraphExtensionTest extends TestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var \Netgen\Bundle\OpenGraphBundle\Templating\Twig\Extension\NetgenOpenGraphExtension |
||
| 14 | */ |
||
| 15 | protected $extension; |
||
| 16 | |||
| 17 | public function setUp() |
||
| 18 | { |
||
| 19 | $this->extension = new NetgenOpenGraphExtension(); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testInstanceOfTwigExtensionInterface() |
||
| 23 | { |
||
| 24 | $this->assertInstanceOf(ExtensionInterface::class, $this->extension); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testGetFunctions() |
||
| 28 | { |
||
| 29 | foreach ($this->extension->getFunctions() as $function) { |
||
| 30 | $this->assertInstanceOf(TwigFunction::class, $function); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 |