public function testLoadingCollection()
 {
     $context = new Context(new ArrayCache());
     $metaFactory = new MetaFactory($context);
     $articleLoader = new ArticleLoader(__DIR__ . '/../../Twig/Node', $metaFactory);
     $result = $articleLoader->load('articles', [], LoaderInterface::COLLECTION);
     self::assertInstanceOf(MetaCollection::class, $result);
     self::assertCount(2, $result);
 }
 /**
  * @param \SWP\Component\TemplatesSystem\Gimme\Loader\ArticleLoader $articleLoader
  * @param \SWP\Component\TemplatesSystem\Gimme\Meta\Meta            $meta
  */
 public function let($articleLoader, $meta)
 {
     $articleLoader->isSupported(Argument::exact('article'))->willReturn(true);
     $articleLoader->isSupported(Argument::exact('article2'))->willReturn(false);
     $articleLoader->load(Argument::exact('article'), Argument::type('array'), \SWP\Component\TemplatesSystem\Gimme\Loader\LoaderInterface::SINGLE)->willReturn($meta);
 }