/** * @since 1.8 * * {@inheritDoc} */ public function drop($verbose = true) { return $this->factory->newInstaller()->uninstall($verbose); }
public function testCanConstructInstaller() { $connection = $this->getMockBuilder('\\DatabaseBase')->disableOriginalConstructor()->getMockForAbstractClass(); $connection->expects($this->any())->method('getType')->will($this->returnValue('mysql')); $store = $this->getMockBuilder('\\SMW\\SQLStore\\SQLStore')->disableOriginalConstructor()->getMock(); $store->expects($this->once())->method('getOptions')->will($this->returnValue(new Options())); $store->expects($this->once())->method('getConnection')->will($this->returnValue($connection)); $instance = new SQLStoreFactory($store); $this->assertInstanceOf('SMW\\SQLStore\\Installer', $instance->newInstaller()); }