/**
* @internal
*/
class AppTemplateIteratorTest extends TestCase
{ use IntegrationTestBehaviour;
public function testConstruct(): void
{ // somehow the constructor is not marked as covered if we get the service from DI
$iterator =
new AppTemplateIterator( $this->
getContainer()->
get('twig.template_iterator'
),
$this->
getContainer()->
get('app_template.repository'
) );
static::
assertInstanceOf(AppTemplateIterator::
class,
$iterator);
} public function testItAddsAppDatabaseTemplates(): void
{ /** @var EntityRepository $appRepository */
$appRepository =
$this->
getContainer()->
get('app.repository'
);