public function testMetadata()
 {
     $metadata = new Metadata($this->conn, $this->queryDriver);
     $metadata->init();
     $metaItem = new \LazyRecord\Model\Metadata();
     $schema = $metaItem->getSchema();
     $this->assertNotNull($schema);
     $ret = $metaItem->create(array('name' => 'version', 'value' => '0.1'));
     $this->assertResultSuccess($ret);
 }
Exemple #2
0
 public function testMetadata()
 {
     $metadata = Metadata::createWithDataSource('default');
     $metadata->init();
     $metaItem = new \LazyRecord\Model\Metadata();
     $schema = $metaItem->getSchema();
     $this->assertNotNull($schema);
     $ret = $metaItem->create(array('name' => 'version', 'value' => '0.1'));
     ok($ret->success);
 }