public function testCollate() { $file = $this->createLayoutFile('test/fixture.less', 'Fixture_TestModule'); $expected = array($this->baseFile->getFileIdentifier() => $this->baseFile, $file->getFileIdentifier() => $file); $result = $this->model->collate(array($file), $this->originFiles); $this->assertSame($expected, $result); }
/** * @expectedException \LogicException * @expectedExceptionMessage Overriding view file 'new.xml' does not match to any of the files */ public function testReplaceThemeFileException() { $file = $this->_createViewFile('new.xml', 'Fixture_TestModule', 'area/theme/path'); $this->_model->collate(array($file), $this->_originFiles); }