Пример #1
0
 public function testGetLicensingInfoMissing()
 {
     $content = '<root xmlns:pkp="http://pkp.sfu.ca/SWORD"></root>';
     $xml = new SimpleXMLElement($content);
     $deposit = new Deposit();
     $this->builder->getLicensingInfo($deposit, $xml);
     $license = $deposit->getLicense();
     $expected = array();
     $this->assertEquals($expected, $license);
 }
 public function setUp()
 {
     parent::setUp();
     $this->builder = $this->getContainer()->get('depositbuilder');
     $this->deposit = $this->builder->fromXml($this->references->getReference('journal'), $this->getDepositXml());
 }