Example #1
0
 public function testSort()
 {
     $valueEntity = new Value();
     $sort = 'Some Sort';
     $expected = $sort;
     $valueEntity->setSort($sort);
     $actual = $valueEntity->getSort();
     $this->assertSame($expected, $actual);
 }
Example #2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->nested = new ArrayCollection();
     $this->allowedTemplates = new ArrayCollection();
 }
Example #3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $now = new \DateTime();
     $this->setValue($now);
 }
Example #4
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->medias = new ArrayCollection();
 }