getContentData() публичный Метод

public getContentData ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface
Пример #1
0
 public function testGetContentDataNullPropertyValue()
 {
     $categoryManager = $this->prophesize(CategoryManagerInterface::class);
     $categoryList = new CategoryList($categoryManager->reveal(), '');
     $property = $this->prophesize(Property::class);
     $property->getValue()->willReturn(null);
     $result = $categoryList->getContentData($property->reveal());
     $this->assertEquals([], $result);
     $categoryManager->findByIds(Argument::any())->shouldNotBeCalled();
     $categoryManager->getApiObjects(Argument::any(), Argument::any())->shouldNotBeCalled();
 }