本文整理汇总了PHP中lithium\data\Connections::remove方法的典型用法代码示例。如果您正苦于以下问题:PHP Connections::remove方法的具体用法?PHP Connections::remove怎么用?PHP Connections::remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lithium\data\Connections
的用法示例。
在下文中一共展示了Connections::remove方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
Connections::remove('mockconn');
MockQueryPost::reset();
MockQueryComment::reset();
MockGallery::reset();
MockImage::reset();
MockImageTag::reset();
MockTag::reset();
}
示例2: tearDown
public function tearDown()
{
Connections::remove('mocksource');
Connections::remove('mockconn');
MockPost::reset();
MockTag::reset();
MockComment::reset();
MockCreator::reset();
MockSubProduct::reset();
MockProduct::reset();
MockPostForValidates::reset();
}
示例3: tearDown
public function tearDown()
{
Connections::remove('mockconn');
MockDatabasePost::reset();
MockDatabaseComment::reset();
MockDatabaseTagging::reset();
MockDatabasePostRevision::reset();
MockGallery::reset();
MockImage::reset();
MockImageTag::reset();
MockTag::reset();
}
示例4: testConnectionRemove
public function testConnectionRemove()
{
$result = Connections::add('conn-to-remove', array('type' => 'Mock') + $this->config);
$expected = $this->config + array('type' => 'Mock');
$this->assertEqual($expected, $result);
$result = Connections::get('conn-to-remove');
$this->assertInstanceOf('lithium\\data\\source\\Mock', $result);
Connections::remove('conn-to-remove');
$result = Connections::get('conn-to-remove');
$this->assertNull($result);
}
示例5: tearDown
public function tearDown()
{
Connections::remove('mockconn');
MockDocumentPost::reset();
}
示例6: tearDown
public function tearDown()
{
Connections::remove('mockconn');
MockCouchPost::reset();
}
示例7: tearDown
public function tearDown()
{
Connections::remove('mock');
MockDatabasePost::reset();
}
示例8: testGridFsDeleteWithCustomPrefix
public function testGridFsDeleteWithCustomPrefix()
{
$data = array('_id' => new MongoId());
$db = new MongoDb($this->_testConfig + array('gridPrefix' => 'custom'));
$db->server = new MockMongoConnection();
$db->connection = new MockMongoConnection();
Connections::add('temp', array('object' => $db));
MockMongoPost::config(array('meta' => array('source' => 'fs.files', 'connection' => 'temp')));
MockMongoPost::create($data, array('exists' => true))->delete();
$this->assertIdentical(null, $db->connection->gridFsPrefix);
MockMongoPost::config(array('meta' => array('source' => 'custom.files')));
MockMongoPost::create($data, array('exists' => true))->delete();
$this->assertIdentical('custom', $db->connection->gridFsPrefix);
Connections::remove('temp');
}
示例9: testDown
public function testDown()
{
Connections::remove('mockconn');
MockGallery::reset();
MockImage::reset();
}