public function setUp()
 {
     $container = new Container();
     $containerProvider = new ContainerProvider();
     $containerProvider->registerBaseUrl($container);
     $containerProvider->registerAdminConfig($container);
     $containerProvider->registerLogger($container);
     $containerProvider->registerModelFactory($container);
     $containerProvider->registerMetadataLoader($container);
     $containerProvider->registerAuthenticator($container);
     $containerProvider->registerAuthorizer($container);
     $containerProvider->registerWidgetFactory($container);
     $containerProvider->registerDashboardBuilder($container);
     $this->obj = new EditTemplate(['logger' => $container['logger'], 'metadata_loader' => $container['metadata/loader'], 'container' => $container]);
     //$this->obj->setDependencies($container);
 }
 public function setUp()
 {
     $container = new Container();
     $containerProvider = new ContainerProvider();
     $containerProvider->registerBaseUrl($container);
     $containerProvider->registerAdminConfig($container);
     $containerProvider->registerLogger($container);
     $containerProvider->registerMetadataLoader($container);
     $containerProvider->registerModelFactory($container);
     $containerProvider->registerAuthenticator($container);
     $containerProvider->registerAuthorizer($container);
     $containerProvider->registerWidgetFactory($container);
     $containerProvider->registerDashboardBuilder($container);
     $containerProvider->registerCollectionLoader($container);
     $this->obj = $this->getMock(CollectionTemplate::class, null, [['logger' => new NullLogger(), 'metadata_loader' => $container['metadata/loader']]]);
     $this->obj->setDependencies($container);
     $this->obj->expects($this->any())->method('isAuthenticated')->will($this->returnValue(true));
 }