Example #1
0
 public function testInheritance()
 {
     $this->assertInstanceOf(AbstractType::class, $this->resourceType);
     $this->assertSame(ResourceType::class, $this->resourceType->getParent());
 }
Example #2
0
 /**
  * @param ResourceInterface       $resource
  * @param FactoryInterface        $factory
  * @param LocaleProviderInterface $localeProvider
  */
 public function __construct(ResourceInterface $resource, FactoryInterface $factory, LocaleProviderInterface $localeProvider)
 {
     parent::__construct($resource, $factory);
     $this->localeProvider = $localeProvider;
 }