public function testXliffExportLocation() { $this->export->setPackageId($this->package1->getId()); $this->export->setLocale('en'); $this->export->setFilename('sulu'); $this->export->setFormat(Export::XLIFF); $this->export->setLocation('Newsletter'); $this->export->setPath(self::$fixturePath . '/'); $this->export->execute(); $expectedHash = file_get_contents(self::$fixturePath . '/samples/export.newsletter.xlf'); $actualHash = file_get_contents(self::$fixturePath . '/sulu.en.xlf'); $this->assertEquals($expectedHash, $actualHash); $this->export->setPackageId($this->package1->getId()); $this->export->setLocale('en'); $this->export->setFormat(Export::XLIFF); $this->export->setLocation('Portals'); $this->export->setFilename('sulu'); $this->export->setPath(self::$fixturePath . '/'); $this->export->execute(); $expectedHash = file_get_contents(self::$fixturePath . '/samples/export.portals.xlf'); $actualHash = file_get_contents(self::$fixturePath . '/sulu.en.xlf'); $this->assertEquals($expectedHash, $actualHash); }