public function testCopyChanges() { $this->_setEditableTheme(); $themeObject = $this->_setStagingTheme(); $this->_copyService->expects($this->atLeastOnce())->method('copy')->with($this->equalTo($themeObject), $this->equalTo($this->_theme))->will($this->returnSelf()); $this->assertEquals($this->_model, $this->_model->copyChanges()); }