Esempio n. 1
0
 public function testFilename()
 {
     // empty
     $this->assertEmpty($this->entity->getFilename());
     $this->assertEmpty($this->entity->getOldFilenames());
     // set foo
     $this->entity->setFilename('foo');
     $this->assertEquals('foo', $this->entity->getFilename());
     // set bar and mark foo as old
     $this->entity->setFilename('bar');
     $this->assertEquals('bar', $this->entity->getFilename());
     $this->assertEquals(['foo'], $this->entity->getOldFilenames());
 }
Esempio n. 2
0
 /**
  * @return string
  */
 public function getFilename()
 {
     return $this->logo ?: parent::getFilename();
 }
Esempio n. 3
0
 /**
  * @return string
  */
 public function getFilename()
 {
     return $this->cover ?: parent::getFilename();
 }
Esempio n. 4
0
 /**
  * @return string
  */
 public function getFilename()
 {
     return $this->source ?: parent::getFilename();
 }