Example #1
0
 public function testSaveWithPackage()
 {
     $store = $this->getStoreMock();
     $store->expects($this->once())->method('set')->with($this->equalTo('test'), $this->equalTo('someValue'), $this->equalTo('112'));
     Config::setStore($store);
     $packagemock = $this->getMock('stdClass', array('getPackageID'));
     $packagemock->expects($this->once())->method('getPackageID')->will($this->returnValue('112'));
     $config = new Config();
     $config->setPackageObject($packagemock);
     $config->save('test', 'someValue');
 }